Files
DailyMeals/MealPlan.Api/DTOs/IngredientCatalog/IngredientCatalogDtos.cs
Piotr Kus f15bb7a916 * Extended functionalities
* Added different UIs
2026-06-24 21:43:40 +02:00

39 lines
1.3 KiB
C#

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