예제 #1
0
 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());
     }
 }
예제 #2
0
 public Customers Get_Customers(GetValue getValue)
 {
     using (var _db = new GmpContext(getValue.ConStr))
     {
         return(_db.Customers.FirstOrDefault(x => x.RecId == getValue.Id));
     }
 }
예제 #3
0
        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);
            }
        }