예제 #1
0
        public void Insert(int PurposeTypesKey,string PurposeDescription)
        {
            PurposeType item = new PurposeType();

            item.PurposeTypesKey = PurposeTypesKey;

            item.PurposeDescription = PurposeDescription;

            item.Save(UserName);
        }
예제 #2
0
        public void Update(int PurposeTypesKey,string PurposeDescription)
        {
            PurposeType item = new PurposeType();
            item.MarkOld();
            item.IsLoaded = true;

            item.PurposeTypesKey = PurposeTypesKey;

            item.PurposeDescription = PurposeDescription;

            item.Save(UserName);
        }