// GET: Diets/Create public ActionResult Create() { ViewBag.IdSeason = new SelectList(_dairyFarmService.GetSeasons(), "IdSeason", "Label"); ViewBag.IdFoods = new SelectList(_dairyFarmService.GetFoods(), "IdFood", "Label"); ViewBag.IdCattleTypes = new SelectList(_dairyFarmService.GetCattleTypes(), "IdCattleType", "Label"); return(PartialView()); }
// GET: Seasons public ActionResult Index(string message, int?state) { if (message != null) { ViewBag.Message = message; ViewBag.State = state; } return(View(_dairyFarmService.GetSeasons())); }