Exemple #1
0
 // GET: Flowers
 public ActionResult Index()
 {
     return(View(flowerRepository.GetFlowers()));
 }
Exemple #2
0
 public ActionResult AddFlowers()
 {
     ViewBag.FlowerId     = new SelectList(flowerRepository.GetFlowers(), "Id", "Name");
     ViewBag.PlantationId = new SelectList(plantationRepository.GetPlantations(), "Id", "Name");
     return(View(new PlantationFlower()));
 }