Пример #1
0
 /// <summary>
 /// Commits the unit of work.
 /// </summary>
 /// <returns></returns>
 public async virtual Task <int> CommitAsync()
 {
     try
     {
         return(await _dataContext.SaveChangesAsync());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }