示例#1
0
        public async Task <bool> DeleteTrAsync(int CategoryId, int id)
        {
            await ValidateCategory(CategoryId);

            await EcomakRepository.DeleteTrAsync(id);

            if (await EcomakRepository.SaveChangesAsync())
            {
                return(true);
            }

            return(false);
        }