public override bool ValidateUser(string username, string password) { int count = db.GetALL().Where(x => x.UserEmail == username && x.Password == password).Count(); if (count != 0) { return(true); } else { return(false); } }
public override string[] GetRolesForUser(string username) { string[] s = { db.GetALL().Where(x => x.UserEmail == username).FirstOrDefault().Role }; return(s); }
public IEnumerable <tbl_Users> GetALL() { return(objDb.GetALL()); }