Пример #1
0
        public async Task <IActionResult> DisableForm([FromBody] BaseInput input)
        {
            var entity = await _settingApp.GetForm(input.KeyValue);

            entity.F_EnabledMark = false;
            await _settingApp.UpdateForm(entity);

            return(Success("启用成功。"));
        }
Пример #2
0
 public async Task <IActionResult> SubmitData([FromBody] SettingEntity entity)
 {
     if (entity.F_Id == null)
     {
         entity.F_Id            = Common.GuId();
         entity.F_CreatorTime   = DateTime.Now;
         entity.F_CreatorUserId = _usersService.GetCurrentUserId();
         await _settingApp.InsertForm(entity);
     }
     else
     {
         entity.F_LastModifyTime   = DateTime.Now;
         entity.F_LastModifyUserId = _usersService.GetCurrentUserId();
         await _settingApp.UpdateForm(entity);
     }
     return(Ok("操作成功。"));
 }