AlistairTait12 / FightWaste

The FightWaste console application - get a quick shopping list based on your meal plan
0 stars 0 forks source link

Create meal model #5

Closed AlistairTait12 closed 1 year ago

AlistairTait12 commented 1 year ago

As a user So I can select a meal I want meals to be stored

// Implements IModel to enforce Id prop and to 
// be used with IDataAccess<TModel>
public class MealModel : IModel
{
    public int Id { get; set; }
    public string? Name { get; set; }
    public List<IngredientQuantityModel> Ingredients { get; set; }
}

The purpose of the model is to group a set of IngredientQuantityModels by a Name which is the name of a meal

AlistairTait12 commented 1 year ago

Need to figure out how to handle list with the ModelTableOutputter. Maybe ModelTableOutputtershould have a use specific to outputting ingredient quantities