public Business GetBusiness(string user, string pwd) { var password = helper.GetMd5(pwd); var entity = service.GetAll().FirstOrDefault(a => (a.Code == user || a.Mobile == user) && a.Password == password); return(entity); }