public async Task <bool> DeleteAsync(int id) { var entity = await _context.FindAsync <T>(id); _context.Remove(entity); await _context.SaveChangesAsync(); return(true); }