Exemple #1
0
        public IActionResult DeleteRoom(int roomID = 0)
        {
            if (roomFacade.DeleteRoom(roomID))
            {
                TempData["message"] = "Deleted Successfully";
            }
            else
            {
                TempData["message"] = "Delete Failed";
            }

            return(Redirect("/Room/ViewRoomSummary"));
        }
Exemple #2
0
 public IHttpActionResult DeleteRoom(long roomId)
 {
     _roomFacade.DeleteRoom(roomId, UserId);
     return(Ok());
 }
Exemple #3
0
 // DELETE: api/Room/5
 public void Delete(int id)
 {
     roomFacade.DeleteRoom(id);
 }