Esempio n. 1
0
 public ActionResult NewDisease()
 {
     // (liste a retourner, value, text)
     ViewBag.IdMedicalTreatments = new SelectList(_dairyFarmService.GetMedicalTreatments(), "IdTreatment", "Label");
     ViewBag.IdDisease           = new SelectList(_dairyFarmService.GetDiseases(), "IdDisease", "Label");
     return(PartialView("_DiseasesHistory"));
 }
 // GET: MedicalTreatments
 public ActionResult Index(string message, int?state)
 {
     if (message != null)
     {
         ViewBag.Message = message;
         ViewBag.State   = state;
     }
     return(View(_dairyFarmService.GetMedicalTreatments()));
 }