async public Task <object> updateUser([FromBody] UpdateBody body) { try { Console.WriteLine(JsonSerializer.Serialize(body)); await AuthModel.updateUser(body.OldEmail, body.NewEmail); return(Ok(new { message = "User email changed" })); } catch (System.Exception) { return(NotFound(new { error = "User not found" })); } }