Beispiel #1
0
        public async Task <Reader> SetReaderAsync(Reader reader)
        {
            try
            {
                if (reader == null)
                {
                    throw new ArgumentNullException("Reader");
                }

                await _readerService.AddOrUpdateAsync(reader);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }

            return(reader);
        }