public async Task <ActionResult> UnOccupyRoom(int projectId, int roomTypeId, int room, int reqId) { try { await _accommodationService.UnOccupyRoom(new UnOccupyRequest() { ProjectId = projectId, AccommodationRequestId = reqId, }); return(Ok()); } catch (Exception e) when(e is ArgumentException || e is JoinRpgEntityNotFoundException) { } catch { return(StatusCode(500)); } return(BadRequest()); }