コード例 #1
0
        // GET:Registered/ Dealers

        public ActionResult Registered()
        {
            var finacialYear = _financialYearAppService.GetActiveFinancialYear();
            var dealers      = _dealerAppService.GetRegisteredDealers(finacialYear);

            return(View(dealers));
        }
コード例 #2
0
        // 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));
        }