// DELETE: api/Project/id public IHttpActionResult DeleteProject(int id) { try { return(Ok(ProjectDataService.DeleteProjectService(id))); } catch (Exception ex) { return(ResponseMessage(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex))); } }