Revert "add CategoryController with endpoints"

This reverts commit 36bca4d658.
This commit is contained in:
franc
2025-04-08 15:23:57 +02:00
parent 36bca4d658
commit 928743303c
24 changed files with 142 additions and 1535 deletions
@@ -1,22 +1,15 @@
using System.ComponentModel.DataAnnotations;
namespace Francesco.Recipes.World.Models.BackendModels.Recipe
namespace Francesco.Recipes.World.Models.BackendModels.Recipe
{
public enum Difficulty
{
[Display(Name = "Sehr einfach")]
VeryEasy = 0,
[Display(Name = "Einfach")]
Easy = 1,
[Display(Name = "Mittel")]
Medium = 2,
[Display(Name = "Schwer")]
Hard = 3,
[Display(Name = "Experte")]
Expert = 4,
}
}
@@ -1,16 +1,14 @@
namespace Francesco.Recipes.World.Models.BackendModels.IngredientShoppingList
{
using Francesco.Recipes.World.Models.BackendModels.RecipeIngredient;
using Francesco.Recipes.World.Models.BackendModels.RecipeShoppingList;
using Francesco.Recipes.World.Models.BackendModels.Shoppinglist;
public class RecipeIngredientShoppingList
{
public Guid Id { get; set; }
public virtual RecipeShoppingList RecipeShoppingList { get; set; } = new ();
public virtual ShoppingList ShoppingList { get; set; } = new ();
public virtual RecipeIngredient RecipeIngredient { get; set; } = new ();
public bool IsChecked { get; set; } = false;
}
}
@@ -1,17 +0,0 @@
namespace Francesco.Recipes.World.Models.BackendModels.RecipeShoppingList
{
using Francesco.Recipes.World.Models.BackendModels.IngredientShoppingList;
using Francesco.Recipes.World.Models.BackendModels.Recipe;
using Francesco.Recipes.World.Models.BackendModels.Shoppinglist;
public class RecipeShoppingList
{
public Guid Id { get; set; }
public virtual ShoppingList ShoppingList { get; set; } = new ShoppingList();
public virtual Recipe Recipe { get; set; } = new ();
public virtual ICollection<RecipeIngredientShoppingList> SelectedIngredients { get; set; } = new List<RecipeIngredientShoppingList>();
}
}
@@ -1,6 +1,6 @@
namespace Francesco.Recipes.World.Models.BackendModels.Shoppinglist
{
using Francesco.Recipes.World.Models.BackendModels.RecipeShoppingList;
using Francesco.Recipes.World.Models.BackendModels.IngredientShoppingList;
public class ShoppingList : ITimeStampedEntity
{
@@ -10,6 +10,6 @@
public DateTime? ModifiedAt { get; set; }
public virtual ICollection<RecipeShoppingList> RecipeShoppingList { get; set; } = new List<RecipeShoppingList>();
public virtual ICollection<RecipeIngredientShoppingList> RecipeIngredientShoppingLists { get; set; } = new List<RecipeIngredientShoppingList>();
}
}