Example #1
0
 public Int32 Delete(TIPO_DOCUMENTO item, LOG log)
 {
     using (DbContextTransaction transaction = Db.Database.BeginTransaction(IsolationLevel.ReadCommitted))
     {
         try
         {
             _logRepository.Add(log);
             _baseRepository.Remove(item);
             transaction.Commit();
             return(0);
         }
         catch (Exception ex)
         {
             transaction.Rollback();
             throw ex;
         }
     }
 }
Example #2
0
 public void Remove(Guid id)
 {
     _tipoDocumentoRepository.Remove(id);
 }