示例#1
0
        public void deleteWebService(int id)
        {
            string resp = "";

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

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

            response(resp);
        }