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

            item.Nombre = Nombre;

            item.Estatico = Estatico;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;


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

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

            item.IdFactorRiesgo = IdFactorRiesgo;

            item.Nombre = Nombre;

            item.Estatico = Estatico;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;

            item.Save(UserName);
        }