public static void Authenticate(string username, string password) { Authorise authorise = null; if (HttpContext.Current != null && HttpContext.Current.Session["LoggedUser"] == null) { HttpContext.Current.Session["LoggedUser"] = new Authorise(); } authorise = (Authorise)HttpContext.Current.Session["LoggedUser"]; authorise.Authenticate(username, password); }
public static void Authenticate(string email, string password) { Authorise authorise = null; if (HttpContext.Current != null && HttpContext.Current.Session["LoggedEmployee"] == null) { HttpContext.Current.Session["LoggedEmployee"] = new Authorise(); } authorise = (Authorise)HttpContext.Current.Session["LoggedEmployee"]; authorise.Authenticate(email, password); }