示例#1
0
        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);
        }
示例#2
0
        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);
        }