* Extended functionalities

* Added different UIs
This commit is contained in:
2026-06-24 21:43:40 +02:00
parent 282f4864c4
commit f15bb7a916
348 changed files with 59057 additions and 498 deletions

View 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;
}