public DTO.Warning Get(GetWarningRequest request)
 {
     try
     {
         var warning = _warningRepository.FindBy(request.Id);
         warning.ThrowExceptionIfRecordIsNull();
         return(_warningFactory.Execute(warning));
     }
     catch (DataAccessException)
     {
         throw new ApplicationException();
     }
 }
        public async Task <IEnumerable <Warning> > Query(GetWarningRequest request)
        {
            var items = await _manager.GetByAreaOn(request.Country, request.Area, request.EffectiveOn).ConfigureAwait(false);

            return(items);
        }
Beispiel #3
0
 public Warning Get(GetWarningRequest request)
 {
     return(_warningService.Get(request));
 }