Ejemplo n.º 1
0
        public async Task <IEnumerable <Pos> > List(int CompanyId)
        {
            IEnumerable <Pos> list;
            IQueryable <Pos>  QList;
            IQueryable <Pos>  QResult;

            try
            {
                QList   = _dbContex.Pos.AsQueryable();
                QResult = QList.Where(x => x.CompanyId == CompanyId);
                return(await QResult.ToListAsync());
            }
            catch (Exception e)
            {
                throw;
            }
        }