Пример #1
0
        public void Insert(string TerritoryID, string TerritoryDescription, int RegionID)
        {
            Territory item = new Territory();

            item.TerritoryID = TerritoryID;

            item.TerritoryDescription = TerritoryDescription;

            item.RegionID = RegionID;


            item.Save(UserName);
        }
Пример #2
0
        public void Update(string TerritoryID, string TerritoryDescription, int RegionID)
        {
            Territory item = new Territory();

            item.MarkOld();
            item.IsLoaded = true;

            item.TerritoryID = TerritoryID;

            item.TerritoryDescription = TerritoryDescription;

            item.RegionID = RegionID;

            item.Save(UserName);
        }