Example #1
0
        public IActionResult ImportEntityRecordsFromCsv(string entityName, [FromBody]JObject postObject)
        {
            string fileTempPath = "";

            if (!postObject.IsNullOrEmpty() && postObject.Properties().Any(p => p.Name == "fileTempPath"))
            {
                fileTempPath = postObject["fileTempPath"].ToString();
            }

            ImportExportManager ieManager = new ImportExportManager(this.hooksService);
            ResponseModel response = ieManager.ImportEntityRecordsFromCsv(entityName, fileTempPath);

            return DoResponse(response);
        }