} // timpul o sa fie exprimat in minute :) // public IEnumerable<Guid> WhoVoted { get; set; } public static Recipe Create(Guid userId, string name, string content, RecipeStatusType status, int preparationTime, int nrPeopleQuant, KitchenType cuisine) { var instance = new Recipe { Id = Guid.NewGuid(), UserId = userId }; instance.Update(name, content, preparationTime, status, cuisine, nrPeopleQuant); return(instance); }
public void Update(string name, string content, int preparationTime, RecipeStatusType status, KitchenType cuisine, int nrPeopleQuantity) { Content = content; PreparationTime = preparationTime; Name = name; Cuisine = cuisine; NrPeopleQuantity = nrPeopleQuantity; Cost = 0; Status = status; Rating = 0; VotesNumber = 0; }