Exemple #1
0
        public async Task <IEnumerable <Venue> > ToList()
        {
            try
            {
                var result = await _venueService.GetList();

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