Ejemplo n.º 1
0
 public void Delete(Modules.CRM_Industry model)
 {
     dal.Initialization();
     FineOffice.Entity.CRM_Industry entity = new Entity.CRM_Industry
     {
         ID = model.ID,
     };
     dal.Delete(entity);
     dal.Dispose();
 }
Ejemplo n.º 2
0
 public FineOffice.Modules.CRM_Industry Update(FineOffice.Modules.CRM_Industry model)
 {
     dal.Initialization();
     FineOffice.Entity.CRM_Industry entity = new Entity.CRM_Industry
     {
         ID       = model.ID,
         Industry = model.Industry,
         Ordering = model.Ordering,
         Remark   = model.Remark,
     };
     dal.Update(entity);
     dal.Dispose();
     return(this.GetModel(d => d.ID == entity.ID));
 }