//GET: RentAssign/Assign public ActionResult Assign(int reqId) { var viewModel = new RentAssignViewModel(); if (viewModel != null) { viewModel.GetAllVehicleTypelookUpdata = _utilityManager.GetAllVehicleTypelookUpdata(); viewModel.RentRequestId = reqId; return(View(viewModel)); } return(NotFound()); }
// GET: RentRequest/Create public ActionResult Create() { var model = new RentRequestViewModel(); model.RentList = _rentrequestManager.GetAll(); model.VehicleTypeLookupData = _utility.GetAllVehicleTypelookUpdata(); model.CustoemrLookUpdata = _utility.GetAllCustomerLookUpdata(); if (model.VehicleTypeLookupData == null) { return(NotFound()); } if (model.CustoemrLookUpdata == null) { return(NotFound()); } return(View(model)); }