Пример #1
0
        public async Task CreateNewAppAsync(AppDto appDto)
        {
            Check.IfNullOrZero(appDto);
            var app         = appDto.ConvertToModel <AppDto, App>();
            var internalApp = new App(app.Name, app.IconUrl, app.AppUrl, app.Width, app.Height, app.AppTypeId, app.AppAuditState, AppReleaseState.UnRelease, app.AppStyle, app.UserId, app.Remark, appDto.IsIconByUpload);

            await _appContext.CreateNewAppAsync(internalApp);
        }
Пример #2
0
 public async Task ModifyUserAppInfoAsync(Int32 userId, AppDto appDto)
 {
     Check.IfNullOrZero(userId);
     Check.IfNullOrZero(appDto);
     await _appContext.ModifyUserAppInfoAsync(userId, appDto.ConvertToModel <AppDto, App>());
 }