public ActionResult SignIn(string id) { EventViewModel viewModel = null; if (!String.IsNullOrEmpty(id)) { viewModel = new EventViewModel( eventKey: id ); } if (viewModel == null) { return new HttpNotFoundResult(); } return File(viewModel.Document.Document, "application/msword"); }
public ActionResult Event(string id) { EventViewModel viewModel = null; if (!String.IsNullOrEmpty(id)) { viewModel = new EventViewModel( eventKey: id ); } if (viewModel == null) { return new HttpNotFoundResult(); } return View(viewModel); }
public ActionResult SignIn(string id) { EventViewModel viewModel = null; if (!String.IsNullOrEmpty(id)) { viewModel = new EventViewModel( eventKey: id ); } if (viewModel == null) { return new HttpNotFoundResult(); } string signInSheetName = String.Format("{0}_SignIn.docx", viewModel.Document.EventKey); return File(viewModel.Document.Document, "application/msword", signInSheetName); }