Ejemplo n.º 1
0
 public int Delete(Guid Id)
 {
     try
     {
         _dBContext.Remove(GetById(Id));
         return(_dBContext.SaveChanges());
     }
     catch (Exception E)
     {
         throw E;
     }
 }
Ejemplo n.º 2
0
 public int Delete(Guid Id)
 {
     try
     {
         var item = GetById(Id);
         _dbContext.Remove(item);
         return(_dbContext.SaveChanges());
     }
     catch (Exception E)
     {
         throw E;
     }
 }