// GET:Registered/ Dealers public ActionResult Registered() { var finacialYear = _financialYearAppService.GetActiveFinancialYear(); var dealers = _dealerAppService.GetRegisteredDealers(finacialYear); return(View(dealers)); }
// GET: Plots public ActionResult Tallied(int id) { var finacialYear = _financialYearAppService.GetActiveFinancialYear(); var dealers = _dealerAppService.GetRegisteredDealers(finacialYear).Select(c => new SelectListItem { Value = c.Id.ToString(), Text = c.Applicant.Name }); var compartment = _compartmentAppService.GetCompartment(id); var plots = _plotAppService.GetTalliedPlotsByCompartment(id); ViewBag.Compartment = compartment; ViewBag.DealerId = dealers; return(View(plots)); }