public IHttpActionResult AcceptProject(int projectId, string username) { var service = new UserService(); try { service.AcceptProject(projectId, username); return(Ok()); } catch (System.Exception) { return(NotFound()); } }