public IActionResult ChangeName(Test changed) { if (changed != null) { if (repository.ChangeName(changed)) { return(Ok()); } return(NotFound()); } return(BadRequest()); }