public async Task Remove(int ID) { User user = await newContext.User.FindAsync(ID); newContext.Remove(user); await newContext.SaveChangesAsync(); }
public async Task Remove(int ID) { CongTy congty = await newContext.CongTy.FindAsync(ID); newContext.Remove(congty); await newContext.SaveChangesAsync(); }
public async Task Remove(int ID) { NhanVien nhanvien = await newContext.NhanVien.FindAsync(ID); newContext.Remove(nhanvien); await newContext.SaveChangesAsync(); }
public async Task Remove(int id) { Category category = await context.Categories.FindAsync(id); context.Remove(category); await context.SaveChangesAsync(); }
public async Task Remove(int ID) { ThamNien thamnien = await newContext.ThamNien.FindAsync(ID); newContext.Remove(thamnien); await newContext.SaveChangesAsync(); }
public async Task Remove(int id) { Post post = await context.Posts.FindAsync(id); context.Remove(post); await context.SaveChangesAsync(); }