Compare commits
No commits in common. "1dd98e1a050f238fb63801462c3204d3e36b8690" and "b882bc09a7ff1068e16e4dcbb8ffe668bf028c19" have entirely different histories.
1dd98e1a05
...
b882bc09a7
@ -78,7 +78,7 @@ namespace API.BusinessLogic
|
||||
foreach (var item in recipe.Directions)
|
||||
{
|
||||
Directions directions = new Directions();
|
||||
directions.Instruktions = item;
|
||||
directions.Instruktions = item.Instructions;
|
||||
dish.Directions.Add(directions);
|
||||
}
|
||||
|
||||
@ -119,7 +119,7 @@ namespace API.BusinessLogic
|
||||
foreach (var item in recipe.Directions)
|
||||
{
|
||||
Directions directions = new Directions();
|
||||
directions.Instruktions = item;
|
||||
directions.Instruktions = item.Instructions;
|
||||
dish.Directions.Add(directions);
|
||||
}
|
||||
|
||||
|
7
backend/API/Models/RecipeModels/DirectionsDTO.cs
Normal file
7
backend/API/Models/RecipeModels/DirectionsDTO.cs
Normal file
@ -0,0 +1,7 @@
|
||||
namespace API.Models.RecipeModels
|
||||
{
|
||||
public class DirectionsDTO
|
||||
{
|
||||
public string Instructions { get; set; }
|
||||
}
|
||||
}
|
@ -6,7 +6,7 @@
|
||||
|
||||
public string Description { get; set; }
|
||||
|
||||
public List<string> Directions { get; set; }
|
||||
public List<DirectionsDTO> Directions { get; set; }
|
||||
|
||||
public List<IngredientDTO> Ingredients { get; set; }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user