Exemple #1
0
        public ActionResult ActivityRegister(string RegistrationName, string RegistrationTel, string UserId, string Id)
        {
            //测试用户id
            UserId = "16BB93E1-3C85-47C5-A5C6-735A5C213320";
            ServiceTemplate service = new ServiceTemplate();
            var             count   = service.GetIsRegistration(new Guid(UserId), new Guid(Id));

            if (count > 0)
            {
                return(Json(2));
            }
            else
            {
                return(Json(service.Add(RegistrationName, RegistrationTel, UserId, Id)));
            }
        }