VS
public class Recipe
{
public int Id { get; set; }
public string Name { get; set; }
public string Instruction { get; set; }
public string Description { get; set; }
public DateTime CreateDate { get; set; }
public DateTime? UpdateDate { get; set; }
public DateTime? DeleteDate { get; set; }
public int UserId { get; set; }
public User User { get; set; }
public List<Ingredient> Ingredients { get; set; }
public List<RecipePhoto> RecipePhotos { get; set; }
public List<Like> Likes { get; set; }
public List<SavedRecipe> SavedRecipes { get; set; }
}public class RecipeDTO
{
public int Id { get; set; }
public int UserId { get; set; }
public string Name { get; set; }
public List<string> Instruction { get; set; }
public List<IngredientDTO> Ingredients { get; set; }
public Dictionary<string, string> Description { get; set; }
public RecipeDTO(
int id,
int userId,
string name,
List<string> instruction,
List<IngredientDTO> ingredients,
Dictionary<string, string> description)
{
this.Id = id;
this.UserId = userId;
this.Name = name;
this.Ingredients = ingredients;
this.Instruction = instruction;
this.Description = description;
}

