public async Task <IHttpActionResult> Delete(int id) { if (id < 1) { return(BadRequest()); } try { await _projectsService.DeleteAsync(id, GetUserAndOrganization()); return(Ok()); } catch (ValidationException e) { return(BadRequestWithError(e)); } catch (UnauthorizedException) { return(Forbidden()); } }