Пример #1
0
        public async Task <Venue> GetFullModel(int id)
        {
            try
            {
                var result = await _venueService.GetFullModel(id);

                return(VenueParser.ToVenueContract(result));
            }
            catch (VenueException exception)
            {
                var fault = new ServiceValidationFaultDetails {
                    Message = "Get venue error"
                };
                throw new FaultException <ServiceValidationFaultDetails>(fault, exception.Message);
            }
        }