Exemple #1
0
        public override void Create(FinishingPrintingSalesContractModel model)
        {
            SalesContractNumberGenerator(model);
            foreach (var detail in model.Details)
            {
                FinishingPrintingSalesContractDetailLogic.Create(detail);
                //EntityExtension.FlagForCreate(detail, IdentityService.Username, "sales-service");
            }

            EntityExtension.FlagForCreate(model, IdentityService.Username, "sales-service");
            DbSet.Add(model);
        }
        public override void Create(FinishingPrintingSalesContractModel model)
        {
            foreach (var detail in model.Details)
            {
                FinishingPrintingSalesContractDetailLogic.Create(detail);
                //EntityExtension.FlagForCreate(detail, IdentityService.Username, "sales-service");
            }

            EntityExtension.FlagForCreate(model, IdentityService.Username, Agent);
            DbSet.Add(model);
            UpdateFPCostCalculationIsSCCreated(model, true);
        }