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

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

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

            response(resp);
        }