Exemplo n.º 1
0
        public async Task Remove(int ID)
        {
            User user = await newContext.User.FindAsync(ID);

            newContext.Remove(user);
            await newContext.SaveChangesAsync();
        }
Exemplo n.º 2
0
        public async Task Remove(int ID)
        {
            CongTy congty = await newContext.CongTy.FindAsync(ID);

            newContext.Remove(congty);
            await newContext.SaveChangesAsync();
        }
Exemplo n.º 3
0
        public async Task Remove(int ID)
        {
            NhanVien nhanvien = await newContext.NhanVien.FindAsync(ID);

            newContext.Remove(nhanvien);
            await newContext.SaveChangesAsync();
        }
Exemplo n.º 4
0
        public async Task Remove(int id)
        {
            Category category = await context.Categories.FindAsync(id);

            context.Remove(category);
            await context.SaveChangesAsync();
        }
Exemplo n.º 5
0
        public async Task Remove(int ID)
        {
            ThamNien thamnien = await newContext.ThamNien.FindAsync(ID);

            newContext.Remove(thamnien);
            await newContext.SaveChangesAsync();
        }
Exemplo n.º 6
0
        public async Task Remove(int id)
        {
            Post post = await context.Posts.FindAsync(id);

            context.Remove(post);
            await context.SaveChangesAsync();
        }