16 lines
786 B
C#
16 lines
786 B
C#
using Fitness_core_BE.Models;
|
|
|
|
namespace Fitness_core_BE.Interfaces
|
|
{
|
|
public interface IAdminSuggestionRepository
|
|
{
|
|
Task<(List<WorkoutPlan> Workouts, List<MealPlan> Meals)> GetPublishedAsync(CancellationToken ct = default);
|
|
Task<WorkoutCategory?> FindWorkoutCategoryAsync(string name, CancellationToken ct = default);
|
|
Task<MealCategory?> FindMealCategoryAsync(string name, CancellationToken ct = default);
|
|
Task AddWorkoutCategoryAsync(WorkoutCategory category, CancellationToken ct = default);
|
|
Task AddMealCategoryAsync(MealCategory category, CancellationToken ct = default);
|
|
Task AddWorkoutAsync(WorkoutPlan plan, CancellationToken ct = default);
|
|
Task AddMealAsync(MealPlan plan, CancellationToken ct = default);
|
|
}
|
|
}
|