Refactoring some Code and clean Code
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@
|
||||
|
||||
public virtual ShoppingList ShoppingList { get; set; } = new ShoppingList();
|
||||
|
||||
public virtual Recipe Recipe { get; set; } = new ();
|
||||
public virtual Recipe Recipe { get; set; } = new Recipe();
|
||||
|
||||
public virtual ICollection<RecipeIngredientShoppingList> SelectedIngredients { get; set; } = new List<RecipeIngredientShoppingList>();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace Francesco.Recipes.World.Models
|
||||
{
|
||||
public class CreateOrAddIngredientRequestModel
|
||||
{
|
||||
public Guid RecipeId { get; set; }
|
||||
|
||||
public List<Guid> IngredientIds { get; set; } = new ();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user