Пример #1
0
        //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());
        }
Пример #2
0
        // 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));
        }