public async Task <InfoModel <bool> > EditActivity([FromBody] InputAddEditForContent model) { var info = await ContentContext.Sub( HttpContext.RequestServices, model.Aid, model.Title, model.HeadImage.ServerFileName, model.Details, 0, DateTime.Now, (await UserInfoForLogin).GetKey(), HttpContext.Connection.RemoteIpAddress.ToString(), DateTime.Now, model.Introduce ); UserTempDir userTempDir = (await UserInfoForLogin).GetUserTempDirForActivity(); if (userTempDir.MoveTempFile(info, model.HeadImage)) { await info.UpdateWithImage(model.HeadImage.ServerFileName); var thimage = info.CreateQuickImage <QuickImageGDI>(model.HeadImage.ServerFileName); var thName = thimage.ThumbnailWithRatio(800); await HttpContext.RequestServices.RefreshSizeOfImage( info, thName, HttpContext.Connection.RemoteIpAddress.ToString(), (await UserInfoForLogin).GetKey()); } return(new InfoModel <bool>() { Data = true }); }