예제 #1
0
        public AdminUser Login(string username, string password)
        {
            AdminUser model = new AdminUser();
            ISpecification <AdminUser> spec = SpecificationBuilder.Create <AdminUser>();

            spec.Equals(m => m.Password, ITOrm.Utility.Encryption.SecurityHelper.GetMD5String(password));
            spec.Equals(m => m.UserName, username);
            model = AdminUser.Single(spec);
            return(model);
        }