public bool UserLogin(string tel, string password)
        {
            var dealerContext = this._dbContext as DealerEFCoreContext;
            var enPass        = MD5Encrption.GetMD5Str(password);

            return(dealerContext.Login.Where(p => p.Code == tel && p.PassWord == enPass).Any());
        }
Beispiel #2
0
 public Login CreateLogin(string code, Guid dealerid)
 {
     this.Id       = Guid.NewGuid();
     this.Code     = code;
     this.PassWord = MD5Encrption.GetMD5Str("111111");
     this.DealerId = dealerid;
     return(this);
 }