Ejemplo n.º 1
0
        public ProductionContents Update(ProductionContents entity)
        {
            var value = entity;

            unitOfWork.ProductionContentsRepository.Update(value);
            return(entity);
        }
Ejemplo n.º 2
0
        public ProductionContents Create(ProductionContents entity)
        {
            var valueToInsert = entity;

            unitOfWork.ProductionContentsRepository.Add(valueToInsert);
            unitOfWork.SaveTablesChanges("dbo.Production_Contents");
            entity.Id = valueToInsert.Id;
            return(entity);
        }
Ejemplo n.º 3
0
        private void CreateBtn_OnClick(object sender, RoutedEventArgs e)
        {
            if (!ValidateForm())
            {
                return;
            }
            var           productionContents = new ProductionContents();
            GoodsInMarket tempGoodsInMarket;

            productionContents.Id           = ProductionContentsDtos[^ 1]?.Id + 1 ?? 1;