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(); }
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)); }