Ejemplo n.º 1
0
        public static bool Login(string adminName, string password)
        {
            MEnterpriseAdmin admin = BLLMEnterpriseAdmin.AdminLogin(adminName, password);

            EMSCookie.AddCookie("AdminCookie", adminName);

            bool isLoginSuccess = admin != null;

            return(isLoginSuccess);
        }
Ejemplo n.º 2
0
        public static Enterprise IsLogin(string email, string pwd)
        {
            Enterprise enterprise = BLLEnterprise.GetEnterprise(email, pwd);

            if (enterprise == null)
            {
                return(null);
            }
            EMSCookie.AddCookie("EnterpriseCookie", email);

            return(enterprise);
        }