Esempio n. 1
0
        public void Update(int Id, int Personid, int Categoryid, string Subject, string Content, bool Isurgent, bool?Deleted, DateTime Createdon, DateTime?Modifiedon, string Createdby, string Modifiedby)
        {
            Newspost item = new Newspost();

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

            item.Id = Id;

            item.Personid = Personid;

            item.Categoryid = Categoryid;

            item.Subject = Subject;

            item.Content = Content;

            item.Isurgent = Isurgent;

            item.Deleted = Deleted;

            item.Createdon = Createdon;

            item.Modifiedon = Modifiedon;

            item.Createdby = Createdby;

            item.Modifiedby = Modifiedby;

            item.Save(UserName);
        }
Esempio n. 2
0
        public void Update(int Id, DateTime Createdon, int Categoryid, string Subject, string Content, bool Isurgent)
        {
            Newspost item = new Newspost();

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

            item.Id         = Id;
            item.Createdon  = Createdon;
            item.Categoryid = Categoryid;
            item.Subject    = Subject;
            item.Content    = Content;
            item.Isurgent   = Isurgent;

            item.Save(UserName);
        }