Exemplo n.º 1
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));
        }