Example #1
0
        public static void CreateTemplatesType(string typeCode, string typeDesc)
        {
            using (var db = new PricingPortalEntities())
            {
                ContractTemplateType newType = new ContractTemplateType()
                {
                    TemplateTypeCode = typeCode,
                    Description      = typeDesc
                };

                db.ContractTemplateTypes.Add(newType);
                db.SaveChanges();
            }
        }
        public static void CreateTemplatesType(string typeCode, string typeDesc)
        {
            using (var db = new PricingPortalEntities())
            {
                ContractTemplateType newType = new ContractTemplateType()
                {
                    TemplateTypeCode = typeCode,
                    Description = typeDesc
                };

                db.ContractTemplateTypes.Add(newType);
                db.SaveChanges();
            }
        }