44 lines
No EOL
940 B
C#
44 lines
No EOL
940 B
C#
using Atesa.Utilitarios;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
|
|
namespace AYA.SlnSinort.Controllers.Login
|
|
{
|
|
public class LoginController : BaseController
|
|
{
|
|
|
|
public ActionResult Login()
|
|
{
|
|
InitControllers();
|
|
return View();
|
|
}
|
|
|
|
public void InicioSesion(AtesaJSON model)
|
|
{
|
|
try
|
|
{
|
|
Session["UserName"] = model.UserName;
|
|
Session["FullName"] = model.UserFullName;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
|
|
}
|
|
}
|
|
public void CerrarSesion()
|
|
{
|
|
try
|
|
{
|
|
Session["UserName"] = null;
|
|
Session["FullName"] = null;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|
|
} |