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); }
public bool Destroy(object IdIntervencion) { return(AprIntervencion.Destroy(IdIntervencion) == 1); }
public bool Delete(object IdIntervencion) { return(AprIntervencion.Delete(IdIntervencion) == 1); }