public void DeleteUser(int id) { _ctx.Remove(new User { Id = id }); _ctx.SaveChanges(); }
public void Delete(int id) { _ctx.Remove(new Kart { Id = id }); _ctx.SaveChanges(); }
public void DeleteProduct(int id) { _ctx.Remove(new Product { Id = id }); _ctx.SaveChanges(); }