public ProductMG Update(ProductMG svm) { var status = dbContext.ProductMG.Attach(svm); dbContext.Entry(svm).State = System.Data.Entity.EntityState.Modified; dbContext.SaveChanges(); return(svm); }
public bool Remove(ProductMG svm) { throw new NotImplementedException(); }
public ProductMG Add(ProductMG svm) { dbContext.ProductMG.Add(svm); dbContext.SaveChanges(); return(svm); }