public async Task <ActionResult> UnOccupyRoom(int projectId, int roomTypeId) { try { await _accommodationService.UnOccupyRoomType(projectId, roomTypeId); return(RedirectToAction("EditRoomTypeRooms", "AccommodationType", new { ProjectId = projectId, RoomTypeId = roomTypeId })); } catch (Exception e) when(e is ArgumentException || e is JoinRpgEntityNotFoundException) { } catch { return(StatusCode(500)); } return(BadRequest()); }