* Extended functionalities
* Added different UIs
This commit is contained in:
38
MealPlan.Api/DTOs/IngredientCatalog/IngredientCatalogDtos.cs
Normal file
38
MealPlan.Api/DTOs/IngredientCatalog/IngredientCatalogDtos.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
namespace MealPlan.Api.DTOs.IngredientCatalog;
|
||||
|
||||
public class IngredientCategoryDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Code { get; set; } = string.Empty;
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public int ItemCount { get; set; }
|
||||
}
|
||||
|
||||
public class IngredientNutritionItemDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int CategoryId { get; set; }
|
||||
public string CategoryCode { get; set; } = string.Empty;
|
||||
public string CategoryName { get; set; } = string.Empty;
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string? NamePl { get; set; }
|
||||
public int CaloriesPer100G { get; set; }
|
||||
public decimal ProteinGPer100G { get; set; }
|
||||
public decimal FatGPer100G { get; set; }
|
||||
public decimal CarbsGPer100G { get; set; }
|
||||
public decimal? FiberGPer100G { get; set; }
|
||||
}
|
||||
|
||||
public class UpsertIngredientNutritionItemDto
|
||||
{
|
||||
public int CategoryId { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string? NamePl { get; set; }
|
||||
public int CaloriesPer100G { get; set; }
|
||||
public decimal ProteinGPer100G { get; set; }
|
||||
public decimal FatGPer100G { get; set; }
|
||||
public decimal CarbsGPer100G { get; set; }
|
||||
public decimal? FiberGPer100G { get; set; }
|
||||
public int SortOrder { get; set; }
|
||||
public bool IsActive { get; set; } = true;
|
||||
}
|
||||
Reference in New Issue
Block a user