* Extended functionalities
* Added different UIs
This commit is contained in:
12
MealPlan.Api/Services/IRecipeExcelService.cs
Normal file
12
MealPlan.Api/Services/IRecipeExcelService.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using MealPlan.Api.DTOs.Recipe;
|
||||
|
||||
namespace MealPlan.Api.Services;
|
||||
|
||||
public interface IRecipeExcelService
|
||||
{
|
||||
/// <summary>Generates a blank .xlsx template with Recipes, Ingredients, and Steps sheets.</summary>
|
||||
byte[] GenerateTemplate();
|
||||
|
||||
/// <summary>Parses an uploaded workbook and creates recipes in the database.</summary>
|
||||
Task<RecipeImportResultDto> ImportAsync(Stream fileStream, CancellationToken ct = default);
|
||||
}
|
||||
Reference in New Issue
Block a user