Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public IActionResult FazerLogin(Clientes cli)
- {
- if (!ModelState.IsValid)
- {
- ModelState.AddModelError("CliSenhaWeb", "ID ou senha incorreto");
- return View("Login");
- }
- if (cli.ValidarAcesso(cli.CliCodigo, cli.CliSenhaWeb, _config) > 0)
- {
- if (cli.Acesso > 0)
- {
- return RedirectToAction("Index", "Home");
- }
- }
- return View();
- }
Add Comment
Please, Sign In to add comment