예제 #1
0
 public void Deletar <T>(T entity) where T : class
 {
     _context.Remove(entity);
 }
예제 #2
0
 public async Task <bool> Delete <T>(T entity) where T : class
 {
     return((await _context.Remove(entity)) > 0);
 }