public IActionResult DeleteRoom(int roomID = 0) { if (roomFacade.DeleteRoom(roomID)) { TempData["message"] = "Deleted Successfully"; } else { TempData["message"] = "Delete Failed"; } return(Redirect("/Room/ViewRoomSummary")); }
public IHttpActionResult DeleteRoom(long roomId) { _roomFacade.DeleteRoom(roomId, UserId); return(Ok()); }
// DELETE: api/Room/5 public void Delete(int id) { roomFacade.DeleteRoom(id); }