示例#1
0
        public void Insert(string Nombre, string CreatedBy, DateTime?CreatedOn, string ModifiedBy, DateTime?ModifiedOn)
        {
            AprFactorProtector item = new AprFactorProtector();

            item.Nombre = Nombre;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;


            item.Save(UserName);
        }
示例#2
0
        public void Update(int IdFactorProtector, string Nombre, string CreatedBy, DateTime?CreatedOn, string ModifiedBy, DateTime?ModifiedOn)
        {
            AprFactorProtector item = new AprFactorProtector();

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

            item.IdFactorProtector = IdFactorProtector;

            item.Nombre = Nombre;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;

            item.Save(UserName);
        }
示例#3
0
 public bool Destroy(object IdFactorProtector)
 {
     return(AprFactorProtector.Destroy(IdFactorProtector) == 1);
 }
示例#4
0
 public bool Delete(object IdFactorProtector)
 {
     return(AprFactorProtector.Delete(IdFactorProtector) == 1);
 }