public List <Customers> Get_List_Customers(GetValue getValue) { using (var _db = new GmpContext(getValue.ConStr)) { return(_db.Customers.Where(x => x.Deleted == false /*&& x.CompanyRecId == getValue.CompanyId */ && x.IsArsiv == false).ToList()); } }
public Customers Get_Customers(GetValue getValue) { using (var _db = new GmpContext(getValue.ConStr)) { return(_db.Customers.FirstOrDefault(x => x.RecId == getValue.Id)); } }
public Users Get_UsersByCode(GetValue _GetValue) { using (var _db = new GmpContext(_GetValue.ConStr)) { var grp = new Users(); try { grp = _db.Users.FirstOrDefault(r => r.UserCode == _GetValue.IdStr); } catch (Exception ex) { } return(grp); } }