Пример #1
0
        public async Task <IActionResult> CreateAsync(IFormCollection forms)
        {
            #region 参数验证
            Check.IfNullOrZero(forms);
            #endregion

            var userContext = await GetUserContextAsync();

            var appDto = WrapperAppDto(forms);
            appDto.UserId = userContext.Id;
            await _appServices.CreateNewAppAsync(appDto);

            return(Json(new ResponseSimple
            {
                IsSuccess = true,
                Message = "应用创建成功"
            }));
        }