public static CookBookItemViewModel MapToViewModel(CookBookItem cookBookItem) { return(new CookBookItemViewModel { Quantity = cookBookItem.Quantity, Unit = Enum.GetName(typeof(Unit), cookBookItem.Unit), Ingredient = cookBookItem.Ingredient.Name, Kcal100 = cookBookItem.Ingredient.Kcal100 }); }
public void Insert(CookBookItem item) { throw new System.NotImplementedException(); }