public List<tblOrderStatus> GetByAllForOrderList()
        {
            long[] lstStatus = { 1, 2, 4, 5 };

            return this.db.tblOrderStatus.Where(a => lstStatus.Contains(Convert.ToInt64(a.OrderStatusId))).ToList();
        }
this.List = mItem.GetAll().Where(a => a.TagIds.Contains(SelectedTagId.ToString() + ';')).ToList();
var lstProductCategory = this.ProductCategoryList.Select(a => a.CategoryId).ToList();

ProductList = (FullProductList.Where(a => lstProductCategory.Contains(Convert.ToInt64(a.ProductTypeId)) ).ToList();

Note: Contains is case sensitive.

Last modified: August 10, 2021

Author

Comments

Write a Reply or Comment