I have a Controller
:
[HttpPost]
public ActionResult Login(string pUsuario, string pSenha)
{
usuario oUsuario = modelOff.usuarios.Where(p => p.usuario1 == pUsuario && p.senha == pSenha).SingleOrDefault();
if (oUsuario == null)
return IR_PARA_ACTION_1;
else
return IR_PARA_ACTION_2;
}
How do I select Action
according to the result of my if
?