DocSas/PropertyService.Domain/DataBaseContext/PSRepository.cs
/// <summary>
/// add as an asynchronous operation.
/// </summary>
/// <param name="entity">The entity.</param>
/// <returns>Task&lt;System.Boolean&gt;.</returns>
add as an asynchronous operation.
add as an asynchronous operation .
public async Task<bool> AddAsync(T entity)
        {
            entity.NullCheck();
            entity.AddedDateUtc = DateTime.UtcNow;
            entity.ModifiedDateUtc = DateTime.UtcNow;
            await _entities.AddAsync(entity);
           return  await SaveAsync();
        }
public async Task < bool > AddAsync ( T entity ) { entity . NullCheck ( ) ; entity . AddedDateUtc = DateTime . UtcNow ; entity . ModifiedDateUtc = DateTime . UtcNow ; await _entities . AddAsync ( entity ) ; return await SaveAsync ( ) ; }
add as an asynchronous operation.
add as an asynchronous operation .
// entity.Id = Guid.NewGuid(); 
None
entity
T
None