Пример #1
0
        public static void AuthenticateDoctor(string username, string password)
        {
            AuthenticationService authenticationService = null;

            if (HttpContext.Current != null && HttpContext.Current.Session["LoggedDoctor"] == null)
            {
                HttpContext.Current.Session["LoggedDoctor"] = new AuthenticationService();
            }

            authenticationService = (AuthenticationService)HttpContext.Current.Session["LoggedDoctor"];
            authenticationService.AuthenticateDoctor(username, password);
        }