Ejemplo n.º 1
0
        public ActionResult editGuestHouseBooking(int profileID, int bookingID)
        {
            GuestHouseModel mdl = new GuestHouseModel();

            mdl = GuestHouseHelper.addGuestHouseBooking(profileID, bookingID);
            return(View("addGuestHouseBooking", mdl));
        }
Ejemplo n.º 2
0
        // GET: GuestHouse
        public ActionResult viewGuestHouseBooking(int profileID)
        {
            GuestHouseModel mdl = new GuestHouseModel();

            mdl = GuestHouseHelper.viewGuestHouseBooking(profileID);
            return(View("viewGuestHouseBooking", mdl));
        }
Ejemplo n.º 3
0
 public ActionResult DeleteGuestHouseBooking(int bookingID, int profileID)
 {
     GuestHouseHelper.DeleteGuestHouseBooking(bookingID);
     return(RedirectToAction("viewGuestHouseBooking", new { profileID = profileID }));
 }
Ejemplo n.º 4
0
 public ActionResult RejectGuestHouseBooking(int bookingID, int profileID, string remarks)
 {
     GuestHouseHelper.UpdateGuestHouseBookingStatus(bookingID, (int)Enums.GuestHouseStatus.Declined, remarks);
     return(RedirectToAction("viewGuestHouseBooking", new { profileID = profileID }));
 }
Ejemplo n.º 5
0
 public ActionResult saveGuestHouseBooking(GuestHouseModel mdl)
 {
     GuestHouseHelper.saveGuestHouseBooking(mdl);
     return(RedirectToAction("viewGuestHouseBooking", new { profileID = mdl.GuestHouseBooking.ProfileID }));
 }