Пример #1
0
        public Advert Load(int id)
        {
            var advert = _repository.Find(id);

            if (advert == null)
            {
                throw new BusinessException($"{nameof(Advert)} not found by {id}");
            }
            return(advert);
        }