// GET: Admin/BallotImportDetails
        public ActionResult Index(int?id)
        {
            if (Session["iduserAdmin"] == null)
            {
                return(RedirectToAction("Login", "HomeAdmin", new { area = "Admin" }));
            }
            var ballotImport = _ballotImport.GetById(id);

            Session["idBallot"] = id;
            return(View(ballotImport));
        }
        // GET: Admin/BallotImports/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            BallotImport ballotImport = _ballotImport.GetById(id);

            if (ballotImport == null)
            {
                return(HttpNotFound());
            }
            return(View(ballotImport));
        }