public async Task <IActionResult> GiveVisa(string uID, int vID, int action, string motivo) { var services = new WorkflowServices(_context, _userManager, _getterUtils, _signInManager); var user = await _userManager.GetUserAsync(User); if (action == 0) { services.SetVisaToUser(uID, vID, user.Id); services.ManageActionVisa(uID, user.Id, vID, BizLogic.WorkflowManager.Action.Aprobar, motivo); } else if (action == 1) { services.ManageActionVisa(uID, user.Id, vID, BizLogic.WorkflowManager.Action.Rechazar, motivo); } return(RedirectToAction("GiveVisa")); }