public async Task <ArchiveResponse> ArchiveProjectsAsync([FromUri(Name = "portfolio")] string viewKey) { // Validate request if (string.IsNullOrWhiteSpace(viewKey)) { throw new HttpResponseException(HttpStatusCode.BadRequest); } ArchiveResponse response = new ArchiveResponse(); using (var context = new PortfolioContext()) { response.ArchivedProjectIds = await portfolioService.ArchiveProjectsAsync(viewKey); } return(response); }
public void Init(ArchiveResponse archive, string mid) { CardHelper.SetCardTitle(ArchiveContent, "用户投稿"); }