public ActionResult Upload(HttpPostedFileBase upload) { try { if (upload != null) { cSVService.GetUsersFromCsvToDB(upload); } return(Redirect("/Home")); } catch (Exception) { return(View("Error")); } }
public ActionResult Upload(HttpPostedFileBase upload) { try { if (upload != null) { cSVService.GetUsersFromCsvToDB(upload); } return(Redirect("/Home")); } catch (Exception) { return(View("Error")); } }