Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public async Task <IActionResult> ChangeRequestStatus(long requestId, bool closed) { Result response; if (User.IsInRole("Administrator") == true || User.IsInRole("Moderator") == true) { response = await _requestService.ChangeRequestStateAsync(requestId, closed); } else { response = new Result(ApplicationResources.UserInterface.Common.UserNoAccess); } return(Json(response)); }