Ejemplo n.º 1
0
        public List <DepotDetailModel> GetDepotDetail(int depotid, string key)
        {
            var list = _stockoutRepository.GetDepotDetail(depotid);

            if (key != null && key != "")
            {
                return(list.Where(p => p.materialCategory.Contains(key) || p.materialModel.Contains(key) || p.materialName.Contains(key) || p.materialUnit.Contains(key)).ToList());
            }
            return(list.ToList());
        }