public ActionResult Edit([Bind(Include = "BallotImportID,NguoiNhan,FromAdd,Kho,NgayNhap")] BallotImport ballotImport)
 {
     if (ModelState.IsValid)
     {
         _ballotImport.Update(ballotImport);
         return(RedirectToAction("Index"));
     }
     return(View(ballotImport));
 }
        public ActionResult Create([Bind(Include = "BallotImportID,NguoiNhan,FromAdd,Kho,NgayNhap")] BallotImport ballotImport)
        {
            if (ModelState.IsValid)
            {
                ballotImport.NgayNhap = DateTime.Now.Date;
                _ballotImport.Create(ballotImport);
                return(RedirectToAction("Index"));
            }

            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));
        }