Exemplo n.º 1
0
        public ActionResult UploadFile(string name, string type = null)
        {
            string result = "";

            try
            {
                IImportBL importBL = new ImportEngine();
                result = importBL.ImportData(null, type, name);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(Json(result, JsonRequestBehavior.AllowGet));
        }