public void Insert(string Nombre, string CreatedBy, DateTime?CreatedOn, string ModifiedBy, DateTime?ModifiedOn)
        {
            AprIntervencion item = new AprIntervencion();

            item.Nombre = Nombre;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;


            item.Save(UserName);
        }
        public void Update(int IdIntervencion, string Nombre, string CreatedBy, DateTime?CreatedOn, string ModifiedBy, DateTime?ModifiedOn)
        {
            AprIntervencion item = new AprIntervencion();

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

            item.IdIntervencion = IdIntervencion;

            item.Nombre = Nombre;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;

            item.Save(UserName);
        }