public Int32 Edit(FORNECEDOR item, LOG log)
 {
     using (DbContextTransaction transaction = Db.Database.BeginTransaction(IsolationLevel.ReadCommitted))
     {
         try
         {
             FORNECEDOR obj = _baseRepository.GetById(item.FORN_CD_ID);
             _baseRepository.Detach(obj);
             _logRepository.Add(log);
             _baseRepository.Update(item);
             transaction.Commit();
             return(0);
         }
         catch (Exception ex)
         {
             transaction.Rollback();
             throw ex;
         }
     }
 }