DocSas/PropertyService.Domain/DataBaseContext/PSRepository.cs
/// <summary>
/// save as an asynchronous operation.
/// </summary>
/// <returns>Task&lt;System.Boolean&gt;.</returns>
/// <exception cref="DSCClientException">
/// </exception>
save as an asynchronous operation.
save as an asynchronous operation .
private async Task<bool> SaveAsync()
        {
            try
            {
                return await _context.SaveChangesAsync() > 0;
            }
            catch (DbUpdateConcurrencyException ex)
            {
                throw new DSCClientException(ExceptionMsg.ErrorOccuredTryAgain, ex);
            }
            catch (RetryLimitExceededException ex)
            {
                throw new DSCClientException(ExceptionMsg.ErrorOccuredTryAgain, ex);
            }
            catch(Exception ex)
            {
                throw new DSCClientException(ExceptionMsg.ErrorOccuredTryAgain, ex);
            }
        }
private async Task < bool > SaveAsync ( ) { try { return await _context . SaveChangesAsync ( ) > 0 ; } catch ( DbUpdateConcurrencyException ex ) { throw new DSCClientException ( ExceptionMsg . ErrorOccuredTryAgain , ex ) ; } catch ( RetryLimitExceededException ex ) { throw new DSCClientException ( ExceptionMsg . ErrorOccuredTryAgain , ex ) ; } catch ( Exception ex ) { throw new DSCClientException ( ExceptionMsg . ErrorOccuredTryAgain , ex ) ; } }
save as an asynchronous operation.
save as an asynchronous operation .
None
None