public ActionResult ScheduleSegmentCreate(Guid flightScheduleId) { var contract = new CrudeFlightScheduleSegmentContract(); contract.FlightScheduleId = flightScheduleId; ViewBag.DepartureAirportId = new SelectList(new CrudeAirportServiceClient().FetchAll(), "AirportId", "AirportName", contract.DepartureAirportId ); ViewBag.ArrivalAirportId = new SelectList(new CrudeAirportServiceClient().FetchAll(), "AirportId", "AirportName", contract.ArrivalAirportId ); contract.UserId = DefaultUserId; ViewBag.DefaultUserName = new CrudeDefaultUserServiceClient(). FetchByDefaultUserId(DefaultUserId). DefaultUserName; contract.DateTime = DateTime.UtcNow; return(View( MVCHelper.Resolve(Request, "Schedule", "ScheduleSegmentCreate"), contract )); }
public ActionResult ScheduleSegmentEdit(System.Guid flightScheduleSegmentId) { CrudeFlightScheduleSegmentContract contract = new CrudeFlightScheduleSegmentServiceClient().FetchByFlightScheduleSegmentId(flightScheduleSegmentId); ViewBag.DepartureAirportId = new SelectList(new CrudeAirportServiceClient().FetchAll(), "AirportId", "AirportName", contract.DepartureAirportId ); ViewBag.ArrivalAirportId = new SelectList(new CrudeAirportServiceClient().FetchAll(), "AirportId", "AirportName", contract.ArrivalAirportId ); ViewBag.DefaultUserName = new CrudeDefaultUserServiceClient(). FetchByDefaultUserId(DefaultUserId). DefaultUserName; return(View( MVCHelper.Resolve(Request, "Schedule", "ScheduleSegmentEdit"), contract )); }
public ActionResult FlightIndex() { return(View( MVCHelper.Resolve(Request, "Flight", "FlightIndex"), new CrudeFlightServiceClient().FetchAll() )); }
public ActionResult ScheduleDetails(System.Guid flightScheduleId) { return(View( MVCHelper.Resolve(Request, "Schedule", "ScheduleDetails"), new CrudeFlightScheduleServiceClient().FetchByFlightScheduleId(flightScheduleId) )); }
public ActionResult FlightScheduleIndex() { return(View( MVCHelper.Resolve(Request, "Schedule", "FlightScheduleIndex"), new ScheduleSearchService().FlightSchedule() )); }
public ActionResult BookingItinerary( Guid bookingId ) { // fetch booking data var bookingItineraryContract = new BookingItineraryContract( bookingId, Logging.UserId(User.Identity, ViewBag) ); // todo, move the following into get booking service bookingItineraryContract.Flights = new BookingSearchService().BookingFlights(bookingId); // default search flight dates bookingItineraryContract.SearchFlights = new FlightsForPeriodLiveContract(); bookingItineraryContract.SearchFlights.FromDateTime = DateTime.UtcNow.Date; bookingItineraryContract.SearchFlights.UntilDateTime = DateTime.UtcNow.Date.AddDays(1); bookingItineraryContract.SearchFlights.Flights = new FlightSearchService().FlightsForPeriod( Guid.Empty, Guid.Empty, bookingItineraryContract.SearchFlights.FromDateTime, bookingItineraryContract.SearchFlights.UntilDateTime ); return(View(MVCHelper.Resolve(Request, "", "Booking", "BookingItinerary"), bookingItineraryContract )); }
public ActionResult BookingGeneral( Guid bookingId ) { var bookingGeneralContract = new BookingGeneralContract( bookingId, Logging.UserId(User.Identity, ViewBag) ); // make view bag for ref codes List <CrudeBookingSourceRefContract> refs = new BusinessLogicLayer.CrudeBookingSourceRefServiceClient().FetchAll(); ViewBag.BookingSourceRcd = new SelectList(refs, "BookingSourceRcd", "BookingSourceName", bookingGeneralContract.BookingSourceRcd ); return(View(MVCHelper.Resolve(Request, "", "Booking", "BookingGeneral"), bookingGeneralContract )); }
public ActionResult ServicePackageIndex() { return(View( MVCHelper.Resolve(Request, "Service", "ServicePackage", "ServicePackageIndex"), new CrudeServicePackageServiceClient().FetchAll() )); }
public ActionResult AirlineLanguageDetails(System.Guid airlineLanguageId) { return(View( MVCHelper.Resolve(Request, "Airline", "AirlineWithDurianGenerated\\AirlineLanguage", "AirlineLanguageDetails"), new CrudeAirlineLanguageServiceClient().FetchByAirlineLanguageId(airlineLanguageId) )); }
public ActionResult ServicePackagePromotionWithFilterIndex() { return(View( MVCHelper.Resolve(Request, "Service", "ServicePackagePromotionWithFilterIndex"), new ServiceSearchService().ServicePackagePromotionWithFilter(Guid.Empty) )); }
public ActionResult DefaultUserDetails(System.Guid defaultUserId) { return(View( MVCHelper.Resolve(Request, "Default", "DefaultUser", "DefaultUserDetails"), new CrudeDefaultUserServiceClient().FetchByDefaultUserId(defaultUserId) )); }
public ActionResult BookieSearchWithOrigin( string originRcd ) { CrudeAirportContract origin = new CrudeAirportServiceClient().FetchByAirportName(originRcd); var contract = new BookieContract(); contract.DepartureAirportId = origin.AirportId; contract.FromDateTime = DateTime.UtcNow.Date; contract.UntilDateTime = contract.FromDateTime.AddDays(1); contract.Flights = new FlightSearchService().FlightsForBookingWithFare( contract.DepartureAirportId, contract.ArrivalAirportId, contract.FromDateTime, contract.UntilDateTime ); return(View( MVCHelper.Resolve(Request, "Bookie", "BookieSearch"), contract )); }
public ActionResult DefaultUserIndex() { return(View( MVCHelper.Resolve(Request, "Default", "DefaultUser", "DefaultUserIndex"), new CrudeDefaultUserServiceClient().FetchAll() )); }
public ActionResult FlightsWithBookingInformationIndex( [Bind()] FlightsWithBookingInformationLiveContract contract ) { // get user id in order to trigger registration of user ( and hopefully fill the viewbag with user id ) Logging.UserId(User.Identity, ViewBag); // default date's if (contract.FromDateTime == DateTime.MinValue) { contract.FromDateTime = DateTime.UtcNow.Date; } if (contract.UntilDateTime == DateTime.MinValue) { contract.UntilDateTime = DateTime.UtcNow.Date.AddDays(1); } contract.Flights = new FlightSearchService().FlightsWithBookingInformation( Guid.Empty, Guid.Empty, contract.FromDateTime, contract.UntilDateTime ); return(View( MVCHelper.Resolve(Request, "Flight", "FlightsWithBookingInformationIndex"), contract )); }
public ActionResult BookingAddress( [Bind()] BookingAddressContract bookingAddressContract ) { if (ModelState.IsValid) { new BookingServiceClient().UpdateBookingPage3( bookingAddressContract.BookingId, bookingAddressContract.AddressTypeRcd, bookingAddressContract.AddressOne, bookingAddressContract.AddressTwo, bookingAddressContract.AddressThree, bookingAddressContract.City, bookingAddressContract.Street, bookingAddressContract.State, bookingAddressContract.District, bookingAddressContract.Province, bookingAddressContract.ZipCode, bookingAddressContract.PoBox, bookingAddressContract.Comment, Logging.UserId(User.Identity, ViewBag) ); return(RedirectToAction( "BookingPassengers", new { bookingId = bookingAddressContract.BookingId })); } return(View(MVCHelper.Resolve(Request, "", "Booking", "BookingAddress"), bookingAddressContract )); }
public ActionResult BookingCreate([Bind()] BookingContract bookingContract) { if (ModelState.IsValid) { var bookingService = new BookingServiceClient(); bookingContract.Booking.BookingId = bookingService.UpdateBooking( bookingContract.Booking.BookingId, bookingContract.Booking.BookingSourceRcd, bookingContract.BookingIdentifier.BookingIdentifierValue, bookingContract.BookingContactMethod.ContactMethodWay, bookingContract.Booking.ReceivedFrom, bookingContract.Booking.Comment, bookingContract.Booking.FinancialCurrencyId, bookingContract.Booking.FinancialCostcentreId, Logging.UserId(User.Identity, ViewBag) ); return(RedirectToAction("BookingContacts", new { bookingId = bookingContract.Booking.BookingId } )); } return(View(MVCHelper.Resolve(Request, "", "Booking", "BookingCreate"), bookingContract )); }
public ActionResult FlightsWithBookingInformationIndex( [Bind()] FlightsWithBookingInformationLiveContract contract, Guid?dillToDiffrentiateFromHttpGet ) { Guid userId = Logging.UserId(User.Identity, ViewBag); if (contract.FromDateTime == DateTime.MinValue) { contract.FromDateTime = DateTime.UtcNow.Date; } if (contract.UntilDateTime == DateTime.MinValue) { contract.UntilDateTime = contract.FromDateTime.AddDays(1); } contract.Flights = new FlightSearchService().FlightsWithBookingInformation( Guid.Empty, Guid.Empty, contract.FromDateTime, contract.UntilDateTime ); return(View( MVCHelper.Resolve(Request, "Flight", "FlightsWithBookingInformationIndex"), contract )); }
public ActionResult DefaultUserCreate(System.Guid?createdByDefaultUserId) { var contract = new CrudeDefaultUserContract(); if (createdByDefaultUserId != null) { contract.CreatedByDefaultUserId = (System.Guid)createdByDefaultUserId; } ViewBag.DefaultStateRcd = new SelectList(new CrudeDefaultStateRefServiceClient().FetchAll(), "DefaultStateRcd", "DefaultStateName", contract.DefaultStateRcd ); ViewBag.CreatedByDefaultUserId = new SelectList(new CrudeDefaultUserServiceClient().FetchAll(), "DefaultUserId", "DefaultUserName", contract.CreatedByDefaultUserId ); contract.DateTime = DateTime.UtcNow; contract.LastActivityDateTime = DateTime.UtcNow; return(View( MVCHelper.Resolve(Request, "Default", "DefaultUser", "DefaultUserCreate"), contract )); }
public ActionResult BookingCreate() { // default values var bookingService = new BookingServiceClient(); BookingContract bookingContract = bookingService.GetBookingEmpty(Logging.UserId(User.Identity, ViewBag)); // todo, session id can't be trusted bookingContract.Booking.BookingId = new Guid(Session["SessionID"].ToString()); bookingContract.Booking.BookingSourceRcd = BookingSourceRef.InternalSystem; bookingContract.BookingIdentifier = new CrudeBookingIdentifierContract(); bookingContract.BookingIdentifier.BookingIdentifierTypeRcd = BookingIdentifierTypeRef.RecordLocator; bookingContract.BookingIdentifier.BookingIdentifierValue = new BookingServiceClient().LocatorCreate(); // get user id ViewBag.UserId = Logging.UserId(User.Identity, ViewBag); // refs List <CrudeBookingSourceRefContract> refs = new BusinessLogicLayer.CrudeBookingSourceRefServiceClient().FetchAll(); ViewBag.BookingSourceRcd = new SelectList( refs, "BookingSourceRcd", "BookingSourceName", bookingContract.Booking.BookingSourceRcd ); return(View(MVCHelper.Resolve(Request, "", "Booking", "BookingCreate"), bookingContract )); }
public ActionResult AirlineLanguageIndex() { return(View( MVCHelper.Resolve(Request, "Airline", "AirlineWithDurianGenerated\\AirlineLanguage", "AirlineLanguageIndex"), new CrudeAirlineLanguageServiceClient().FetchAll() )); }
public ActionResult AirlineLanguageEdit(System.Guid airlineLanguageId) { CrudeAirlineLanguageContract contract = new CrudeAirlineLanguageServiceClient().FetchByAirlineLanguageId(airlineLanguageId); ViewBag.AirlineId = new SelectList(new CrudeAirlineServiceClient().FetchAll(), "AirlineId", "AirlineName", contract.AirlineId ); ViewBag.LanguageRcd = new SelectList(new CrudeLanguageRefServiceClient().FetchAll(), "LanguageRcd", "LanguageName", contract.LanguageRcd ); ViewBag.DefaultUserName = new CrudeDefaultUserServiceClient().FetchByDefaultUserId(contract.UserId).DefaultUserName; return(View( MVCHelper.Resolve(Request, "Airline", "AirlineWithDurianGenerated\\AirlineLanguage", "AirlineLanguageEdit"), contract )); }
public ActionResult VoucherSearchWithRemainingAmountIndex() { return(View( MVCHelper.Resolve(Request, "Financial", "VoucherSearchWithRemainingAmountIndex"), new FinancialSearchService().VoucherSearchWithRemainingAmount(DateTime.MinValue) )); }
public ActionResult GetServicePackageIndex(System.Guid servicePackageId) { return(View( MVCHelper.Resolve(Request, "Service", "GetServicePackageIndex"), new ServiceSearchService().GetServicePackage(servicePackageId) )); }
public ActionResult ServicePackageDetails(System.Guid servicePackageId) { return(View( MVCHelper.Resolve(Request, "Service", "ServicePackage", "ServicePackageDetails"), new CrudeServicePackageServiceClient().FetchByServicePackageId(servicePackageId) )); }
public ActionResult ServicePackageByDepartureAirportIndex(System.Guid departureAirportId) { ViewBag.DepartureAirportId = departureAirportId; return(View( MVCHelper.Resolve(Request, "Service", "ServicePackage", "ServicePackageIndex"), new CrudeServicePackageServiceClient().FetchByDepartureAirportId(departureAirportId) )); }
public ActionResult SpecialServiceRequestIndex() { return(View( MVCHelper.Resolve(Request, "Service", "SpecialServiceRequestIndex"), new ServiceSearchService().FetchServiceSpecialServiceRequestWithFilter( String.Empty, String.Empty, String.Empty, String.Empty, String.Empty) )); }
public ActionResult DefaultUserByCreatedByDefaultUserIndex(System.Guid createdByDefaultUserId) { ViewBag.CreatedByDefaultUserId = createdByDefaultUserId; return(View( MVCHelper.Resolve(Request, "Default", "DefaultUser", "DefaultUserIndex"), new CrudeDefaultUserServiceClient().FetchByCreatedByDefaultUserId(createdByDefaultUserId) )); }
public ActionResult ServicePackageByArrivalAirportIndex(System.Guid arrivalAirportId) { ViewBag.ArrivalAirportId = arrivalAirportId; return(View( MVCHelper.Resolve(Request, "Service", "ServicePackage", "ServicePackageIndex"), new CrudeServicePackageServiceClient().FetchByArrivalAirportId(arrivalAirportId) )); }
public ActionResult ServicePackageByServiceCarRentalIndex(System.Guid serviceCarRentalId) { ViewBag.ServiceCarRentalId = serviceCarRentalId; return(View( MVCHelper.Resolve(Request, "Service", "ServicePackage", "ServicePackageIndex"), new CrudeServicePackageServiceClient().FetchByServiceCarRentalId(serviceCarRentalId) )); }
public ActionResult BookingServiceFerry( Guid bookingId ) { return(View( MVCHelper.Resolve(Request, "", "Booking", "BookingServiceFerry"), BookingServiceFerryNew(bookingId) )); }