public ActionResult ImportWatch(HttpPostedFileBase zip, HttpPostedFileBase excel) { bool canImport = true; TempData["SHOW_MODAL"] = @"<script>$('#importModal').modal();</script>"; string excelResult = ProcessImportFileHelper.CheckValidExcelFile(excel); if (excelResult != null) { canImport = false; TempData["EXCEL"] = excelResult; } string zipResult = ProcessImportFileHelper.CheckValidZipFile(zip); if (zipResult != null) { canImport = false; TempData["ZIP"] = zipResult; } if (!canImport) { return(RedirectToAction("AddWatch", "Admin")); } int result = watchService.ImportWatchFromFile(excel, zip, Session.GetCurrentUserInfo("Username")); TempData["RESULT"] = "Total " + result + " watch(es) imported successfully"; return(RedirectToAction("AddWatch", "Admin")); }