public ActionResult AddFeedIngredient(FeedingIngredientsView model) { if (ModelState.IsValid) { ViewBag.FeedingStockId = new SelectList(_stock.GetAllFeedingStock(), "FeedingStockId", "FeedingStockId"); ViewBag.FeedingPercentageId = new SelectList(_percentage.GetPercentage(), "FeedingPercentageId", "FeedingPercentageId"); _ingredient.AddFeedIngr(model); return RedirectToAction("CreateFeedRatio"); } return View(); }
public ActionResult UpdateFeedIngredient(FeedingIngredientsView model) { return View(); }