/// <summary>
        /// چک کردن انقضای تخفیف
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public async Task <bool> IsGroupExpired(int id)
        {
            var model = await TableNoTracking.LastOrDefaultAsync(a => a.ProductGroupId == id && a.IsActive == true);

            return(model == null || DateTime.Now > model.EndDate);
        }