public String Post([Bind] Sys_InsConfigModel model) { string message = string.Empty; var service = new Sys_AttOvertimePermitConfigServices(); var entity = model.CopyData <Sys_InsConfigEntity>(); service.SaveInsConfig(entity); return(message); }
public Sys_InsConfigModel GetById(Guid id) { var model = new Sys_InsConfigModel(); var service = new Sys_AttOvertimePermitConfigServices(); var entity = service.GetInsConfig(); if (entity != null) { model = entity.CopyData <Sys_InsConfigModel>(); } return(model); }