コード例 #1
0
        public async Task <QueryMultipleResult <IEnumerable <DestinationModel>, DestinationModel> > GetAll()
        {
            try
            {
                var destinations = await _destinationRepository.GetAll();

                return(new QueryMultipleResult <IEnumerable <DestinationModel>, DestinationModel>(destinations));
            }
            catch (Exception exception)
            {
                return(new QueryMultipleResult <IEnumerable <DestinationModel>, DestinationModel>(exception.Message));
            }
        }