Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
//[ValidateAntiForgeryToken] todo anti atack CSRF/XSRF public async Task <IActionResult> AproveAccount(string id) { try { await _formManager.ChangeStatus(id, Models.Core.FormStatus.Prospected); SetMessage("Cliente prospectado.", Models.Core.MsgType.Success); return(RedirectToAction(nameof(Forms))); } catch (Exception e) { SetMessage(e.Message, Models.Core.MsgType.Error); return(RedirectToAction(nameof(Index))); } }