public void Delete(StockEntities entitie) { db.DeleteProduct(entitie.ProductCode); db.SaveChanges(); }
public void UpdateElement(StockEntities entitie) { db.UpdateProduct(entitie.ProductCode, entitie.NameProduct, entitie.ProductDescription, entitie.ProductBrand, entitie.ProductModel, entitie.ProductSerial, entitie.ProductStatus); db.SaveChanges(); }
DataLayer.Entities.TechnologicalWarehouseEntities1 db = new Entities.TechnologicalWarehouseEntities1(); // Instancia del modelo de EF public void Save(StockEntities entitie) { db.InsertProduct(entitie.ProductCode, entitie.NameProduct, entitie.ProductDescription, entitie.ProductBrand, entitie.ProductModel, entitie.ProductSerial, entitie.ProductStatus); db.SaveChanges(); }