public ActionResult Import() { var model = new TaskImportModel(); model.Tab = "Task"; return(this.View(model)); }
public ActionResult Import(HttpPostedFileBase file) { var model = new TaskImportModel(); model.Tab = "Task"; model.Tasks = ImportHelper.ImportTasks(this, file); if (this.ModelState.IsValid) { return(this.View("ImportSuccess", model)); } return(this.View(model)); }