Beispiel #1
0
        public async Task <Read> SetReadAsync(Read read)
        {
            try
            {
                if (read == null)
                {
                    throw new ArgumentNullException("Read");
                }

                await _readService.AddOrUpdateAsync(read);

                Update(read.ReadingId);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }

            return(read);
        }