internal MyDataTableResponse <AnimalFoodBuy> GetAllByAnimalFoodId(int animalFoodId, int?take, int?skip)
        {
            var query = GetQuery().Where(q => q.AnimalFoodId == animalFoodId);


            int total = query.Count();

            query = MyUtility.AsPaging <AnimalFoodBuy>(query, take, skip);

            return(new MyDataTableResponse <AnimalFoodBuy>
            {
                Total = total,
                LastTake = take > 0 ? take.Value : MyGlobal.PagingCount,
                LastSkip = skip,
                EntityList = query.ToList(),
            });
        }