public ActionResult Upload() { return(this.UploadFiles(file => { var job = Jobs.Create(new Job { name = DateTime.Now.Ticks.ToString() }); Attachments.Upload(job.id, file); })); }