Ejemplo n.º 1
0
        public async Task <FullShowDto> GetFullShow(int id)
        {
            var json = await _showService.GetFullShow(id);

            var show = _jsonSerializeService.TryDeserializeObject <FullShowDto>(json);

            if (show.success)
            {
                return(show.obj);
            }

            throw new InvalidShowException($"Full Show id: {id}");
        }