public async Task <ActionResult <List <PromoCodeShortResponse> > > GetPromocodesAsync()
        {
            //TODO: Получить все промокоды
            var promoCodes = await _promoCodeRepository.GetAllAsync();

            return(Ok(_mapper.Map <List <PromoCodeShortResponse> >(promoCodes)));
        }
        public async Task <List <PromoCodeDetailsModel> > GetAllAsync()
        {
            var data = await _promoCodeRepository.GetAllAsync();

            List <PromoCodeDetailsModel> models = new List <PromoCodeDetailsModel>();

            foreach (var promocode in data)
            {
                models.Add(new PromoCodeDetailsModel
                {
                    PromocodeName = promocode.PromocodeName,
                    Code          = promocode.Code,
                    Validity      = promocode.Validity,
                    Discount      = promocode.Discount,
                    Id            = promocode.Id,
                    CreatedOn     = promocode.CreatedOn,
                    IsActive      = promocode.IsActive
                });
            }
            ;

            return(models);
        }