예제 #1
0
        // GET: Bills/Create
        public ActionResult Create(int id)
        {
            var dealer = _dealerAppService.GetDealer(id);

            ViewBag.Dealer = dealer;
            return(View());
        }
예제 #2
0
        // GET: DealerActivities
        public ActionResult List(int id)
        {
            var dealer     = _dealerAppService.GetDealer(id);
            var activities = _dealerActivityAppService.GetDealerActivities(dealer);

            ViewBag.Dealer = dealer;
            return(View(activities));
        }
예제 #3
0
        //Confirm registration application

        public ActionResult ApproveRegistration(int id)
        {
            var dealer           = _dealerAppService.GetDealer(id);
            var DealerActivities = _dealerActivityAppService.GetDealerActivities(dealer);

            ViewBag.DealerActivities = DealerActivities;

            return(View(dealer));
        }
예제 #4
0
        public ActionResult AddActivities(int id)
        {
            var dealer           = _dealerAppService.GetDealer(id);
            var activities       = _activityAppService.GetActivities();
            var DealerActivities = _dealerActivityAppService.GetDealerActivities(dealer);

            ViewBag.Dealer           = dealer;
            ViewBag.Activities       = activities;
            ViewBag.DealerActivities = DealerActivities;
            return(View());
        }
예제 #5
0
        // GET: PlotAllocation
        public ActionResult Index(int id)
        {
            var dealer         = _dealerAppService.GetDealer(id);
            var allocatedPlots = _allocatedPlotAppService.GetAllocatedPlotsByDealer(dealer);
            var sources        = _revenueSourceAppService.GetRevenueResources().Select(c => new SelectListItem {
                Value = c.Id.ToString(), Text = c.Description
            });

            ViewBag.RevenueSourceId = sources;
            ViewBag.Dealer          = dealer;
            ViewBag.Plots           = allocatedPlots;
            return(View());
        }
예제 #6
0
        public ActionResult Confirm(int id, BillDto input, double Amount)
        {
            var bill   = _billAppService.GetBill(id);
            var dealer = _dealerAppService.GetDealer(input.ApplicantId);

            if (bill != null)
            {
                _billAppService.ConfirmBill(bill, Amount);
            }
            else
            {
                throw new UserFriendlyException("Enter the paid amount");
            }
            return(RedirectToAction("Index"));
        }