public IHttpActionResult GetAssignUserToTeam(int id, string name) { var repo = new TeamRepository(); if (!repo.AssignUserToTeam(id, name)) { return(NotFound()); } return(Ok()); }