Example #1
0
 // 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());
 }
Example #2
0
 // GET: Seasons
 public ActionResult Index(string message, int?state)
 {
     if (message != null)
     {
         ViewBag.Message = message;
         ViewBag.State   = state;
     }
     return(View(_dairyFarmService.GetSeasons()));
 }