// GET: Bills/Create public ActionResult Create(int id) { var dealer = _dealerAppService.GetDealer(id); ViewBag.Dealer = dealer; return(View()); }
// GET: DealerActivities public ActionResult List(int id) { var dealer = _dealerAppService.GetDealer(id); var activities = _dealerActivityAppService.GetDealerActivities(dealer); ViewBag.Dealer = dealer; return(View(activities)); }
//Confirm registration application public ActionResult ApproveRegistration(int id) { var dealer = _dealerAppService.GetDealer(id); var DealerActivities = _dealerActivityAppService.GetDealerActivities(dealer); ViewBag.DealerActivities = DealerActivities; return(View(dealer)); }
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()); }
// 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()); }
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")); }