Compare commits
2 Commits
b882bc09a7
...
1dd98e1a05
Author | SHA1 | Date | |
---|---|---|---|
|
1dd98e1a05 | ||
|
df7d5f9695 |
@ -78,7 +78,7 @@ namespace API.BusinessLogic
|
|||||||
foreach (var item in recipe.Directions)
|
foreach (var item in recipe.Directions)
|
||||||
{
|
{
|
||||||
Directions directions = new Directions();
|
Directions directions = new Directions();
|
||||||
directions.Instruktions = item.Instructions;
|
directions.Instruktions = item;
|
||||||
dish.Directions.Add(directions);
|
dish.Directions.Add(directions);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -119,7 +119,7 @@ namespace API.BusinessLogic
|
|||||||
foreach (var item in recipe.Directions)
|
foreach (var item in recipe.Directions)
|
||||||
{
|
{
|
||||||
Directions directions = new Directions();
|
Directions directions = new Directions();
|
||||||
directions.Instruktions = item.Instructions;
|
directions.Instruktions = item;
|
||||||
dish.Directions.Add(directions);
|
dish.Directions.Add(directions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
namespace API.Models.RecipeModels
|
|
||||||
{
|
|
||||||
public class DirectionsDTO
|
|
||||||
{
|
|
||||||
public string Instructions { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
public string Description { get; set; }
|
public string Description { get; set; }
|
||||||
|
|
||||||
public List<DirectionsDTO> Directions { get; set; }
|
public List<string> Directions { get; set; }
|
||||||
|
|
||||||
public List<IngredientDTO> Ingredients { get; set; }
|
public List<IngredientDTO> Ingredients { get; set; }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user