Example #1
0
        public ActionResult UploadBrgy(HttpPostedFileBase fileUpload)
        {
            if (fileUpload != null)
            {
                var f = fileUpload.SaveToFolder(typeof(Barangay).Name, "Data", false);

                var csv = new CsvService();
                csv.BulkImportJob(4, "|");

                ViewBag.Success = true;
                return(View("Index"));
            }
            else
            {
                return(RedirectToAction("Index"));
            }
        }