public ActionResult LoadDetails(int id)
        {
            var model = new DestinationViewModel();

            model = _destinationService.GetAll().Where(x => x.ID == id).FirstOrDefault();
            return(Json(model, JsonRequestBehavior.AllowGet));
        }
示例#2
0
        public ActionResult Calendar()
        {
            var users = _userService.GetAll();
            CalendarViewModel model = new CalendarViewModel();

            model.Aircrafts    = _actypeService.GetAll().ToList();
            model.Pilots       = users.Where(x => x.RoleID == (int)UserRole.Pilot).ToList();
            model.Crews        = users.Where(x => x.RoleID == (int)UserRole.AircraftCrew).ToList();
            model.Destinations = _destService.GetAll().ToList();
            //model.Aircrafts =
            return(View(model));
        }
示例#3
0
 public ActionResult AddPackage()
 {
     ViewBag.Vendors      = _vendorService.GetAll();
     ViewBag.Destinations = _destinationService.GetAll();
     return(View());
 }
示例#4
0
        public ActionResult GetAllDestinations()
        {
            var destinations = _destinationService.GetAll();

            return(Json(destinations, JsonRequestBehavior.AllowGet));
        }