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

17 lines
812 B
C#

using MealPlan.Api.DTOs.IngredientCatalog;
namespace MealPlan.Api.Services;
public interface IIngredientCatalogService
{
Task<IReadOnlyList<IngredientCategoryDto>> GetCategoriesAsync(CancellationToken ct = default);
Task<IReadOnlyList<IngredientNutritionItemDto>> GetItemsAsync(
string? categoryCode,
string? search,
CancellationToken ct = default);
Task<IngredientNutritionItemDto?> GetItemByIdAsync(int id, CancellationToken ct = default);
Task<IngredientNutritionItemDto?> CreateItemAsync(UpsertIngredientNutritionItemDto dto, CancellationToken ct = default);
Task<IngredientNutritionItemDto?> UpdateItemAsync(int id, UpsertIngredientNutritionItemDto dto, CancellationToken ct = default);
Task<bool> DeleteItemAsync(int id, CancellationToken ct = default);
}