public async Task <IHttpActionResult> Get() { using (var context = new ConnectContext()) { var documents = await context.GetDirectUploadDocumentsAsync(ConnectUser); return(Ok(documents.Select(c => new DirectUploadViewModel { DocumentId = c.Id, FileName = c.FileName, Uploaded = DateTime.Now }))); } }