public IActionResult Delete(string id) { long ID = 0; if (long.TryParse(id, out ID)) { User user = _srv.GetUser(ID); if (user != null) { if (_srv.DeleteUser(user)) { return(Ok()); } return(BadRequest("Deleting user failed!")); } return(NotFound($"Couldn't find user with ID: {ID}!")); } return(BadRequest("Couldn't parse user ID!")); }