Пример #1
0
        public void Insert(string Description, string Type, string ExternalRef, DateTime?DateAdded, bool?Valid)
        {
            GeneralLib item = new GeneralLib();

            item.Description = Description;

            item.Type = Type;

            item.ExternalRef = ExternalRef;

            item.DateAdded = DateAdded;

            item.Valid = Valid;


            item.Save(UserName);
        }
Пример #2
0
        public void Update(int Id, string Description, string Type, string ExternalRef, DateTime?DateAdded, bool?Valid)
        {
            GeneralLib item = new GeneralLib();

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

            item.Id = Id;

            item.Description = Description;

            item.Type = Type;

            item.ExternalRef = ExternalRef;

            item.DateAdded = DateAdded;

            item.Valid = Valid;

            item.Save(UserName);
        }