public ActionResult LoadDetails(int id) { var model = new DestinationViewModel(); model = _destinationService.GetAll().Where(x => x.ID == id).FirstOrDefault(); return(Json(model, JsonRequestBehavior.AllowGet)); }
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)); }
public ActionResult AddPackage() { ViewBag.Vendors = _vendorService.GetAll(); ViewBag.Destinations = _destinationService.GetAll(); return(View()); }
public ActionResult GetAllDestinations() { var destinations = _destinationService.GetAll(); return(Json(destinations, JsonRequestBehavior.AllowGet)); }