コード例 #1
0
        public async Task <Subscribe> GetSubscribeAsync(int id)
        {
            //validatSubscribeId(id);
            //var Subscribe = EcomakRepository.GetSubscribe(id, showBooks);
            //return Subscribe;
            var Subscribe = await EcomakRepository.GetSubscribeAsync(id);

            if (Subscribe == null)
            {
                throw new NotFoundItemException("Subscribe not found");
            }
            return(mapper.Map <Subscribe>(Subscribe));
        }