Example #1
0
        public void deleteFlatFile(int id)
        {
            string resp = "";

            try
            {
                connectModel();
                systemConfigurationModel.deleteFlatFile(id);

                resp = "{\"type\":\"success\", \"message\":\"Flat file deleted Successfully.\"}";
            }
            catch (Exception)
            {
                resp = "{\"type\":\"danger\", \"message\":\"Can not be deleted the flat file. Please try again.\"}";
            }

            response(resp);
        }