//phuong thuc insert into table role public RoleEntity Save(RoleEntity roleEntity) { dbContext.roles.AddAsync(roleEntity); dbContext.SaveChangesAsync(); return(roleEntity); }
//phương thức insert into table product public Product2 AddProduct(Product2 Product) { dbContext.Products.AddAsync(Product); dbContext.SaveChangesAsync(); return(Product); }