Example #1
0
 public virtual void Delete(int id)
 {
     try
     {
         _context.Remove(_context.Find <T>(id));
         _context.SaveChanges();
     }
     catch (Exception)
     {
         throw;
     }
 }