public void Update(int Id, int Fieldid, string Label, bool?Deleted, DateTime?Createdon, DateTime?Modifiedon, string Createdby, string Modifiedby)
        {
            Formcode item = new Formcode();

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

            item.Id = Id;

            item.Fieldid = Fieldid;

            item.Label = Label;

            item.Deleted = Deleted;

            item.Createdon = Createdon;

            item.Modifiedon = Modifiedon;

            item.Createdby = Createdby;

            item.Modifiedby = Modifiedby;

            item.Save(UserName);
        }
        public void Insert(int Fieldid, string Label, bool?Deleted, DateTime?Createdon, DateTime?Modifiedon, string Createdby, string Modifiedby)
        {
            Formcode item = new Formcode();

            item.Fieldid = Fieldid;

            item.Label = Label;

            item.Deleted = Deleted;

            item.Createdon = Createdon;

            item.Modifiedon = Modifiedon;

            item.Createdby = Createdby;

            item.Modifiedby = Modifiedby;


            item.Save(UserName);
        }
 public bool Destroy(object Id)
 {
     return(Formcode.Destroy(Id) == 1);
 }
 public bool Delete(object Id)
 {
     return(Formcode.Delete(Id) == 1);
 }