Beispiel #1
0
        public string CreateConvictWebApp(string email, string name, string password, string convictCode)
        {
            try
            {
                //Add method here
                BCWebApp.createConvict(email, password, name, convictCode);
            }
            catch (Exception ex)
            {
            }
            JavaScriptSerializer js = new JavaScriptSerializer();
            string strJSON          = js.Serialize("{'emailaddress': '" + email + "', 'convictcode': '" + convictCode + "'}");

            return(strJSON);
        }
Beispiel #2
0
        public string CreateTeamConvictWebApp(string email, string name, string password, string convictCode, string teamCode, string teamType, string teamName)
        {
            try
            {
                convictsHelper.registerConvict(email, name);
                BCWebApp.createConvict(email, password, name, convictCode);
                convictsHelper.registerTeam(teamCode, teamName, teamType);
                BCWebApp.createTeam(email, password, teamName, teamCode, teamType);
            }
            catch (Exception ex)
            {
            }
            JavaScriptSerializer js = new JavaScriptSerializer();
            string strJSON          = js.Serialize("{'emailaddress': '" + email + "', 'convictcode': '" + convictCode + "'}");

            return(strJSON);
        }