public bool ReferenceExist(int goodId, int categoryId) { return(ReferenceList.Exists(x => x.CategoryId == categoryId && x.GoodId == goodId)); }