public ActionResult editGuestHouseBooking(int profileID, int bookingID) { GuestHouseModel mdl = new GuestHouseModel(); mdl = GuestHouseHelper.addGuestHouseBooking(profileID, bookingID); return(View("addGuestHouseBooking", mdl)); }
// GET: GuestHouse public ActionResult viewGuestHouseBooking(int profileID) { GuestHouseModel mdl = new GuestHouseModel(); mdl = GuestHouseHelper.viewGuestHouseBooking(profileID); return(View("viewGuestHouseBooking", mdl)); }
public ActionResult DeleteGuestHouseBooking(int bookingID, int profileID) { GuestHouseHelper.DeleteGuestHouseBooking(bookingID); return(RedirectToAction("viewGuestHouseBooking", new { profileID = profileID })); }
public ActionResult RejectGuestHouseBooking(int bookingID, int profileID, string remarks) { GuestHouseHelper.UpdateGuestHouseBookingStatus(bookingID, (int)Enums.GuestHouseStatus.Declined, remarks); return(RedirectToAction("viewGuestHouseBooking", new { profileID = profileID })); }
public ActionResult saveGuestHouseBooking(GuestHouseModel mdl) { GuestHouseHelper.saveGuestHouseBooking(mdl); return(RedirectToAction("viewGuestHouseBooking", new { profileID = mdl.GuestHouseBooking.ProfileID })); }