public async Task <ApiResult> UpgradeUserToModerator(string userId) { try { var result = await _moderationService.UpgradeUserToModerator(userId); return(result ? ApiResult.Success("User had been upgraded to admin.") : ApiResult.NotFound("Could not find user.")); } catch (System.Exception) { return(ApiResult.BadRequest("Something went wrong")); } }