public async Task <ActionResult> Create() { var model = new SalesHistoryCreate(); model.Restaurants = await _restaurantsService.GetAllAsync(); var dishes = await _recipesService.GetAllAsync(); model.AllDishes = ConvertToRecipesSelect(dishes); return(View(model)); }
public async Task<ActionResult> Index() { var collection = (await _recipesService.GetAllAsync()); return View(collection); }