Example #1
0
 public JObject PostRegistrationApplication(string userName, string phone, string email, string industry,
                                            string city)
 {
     //var jObject = new JObject();
     try
     {
         var entity = new UserRegister
         {
             UserName = userName,
             Phone    = phone,
             EMail    = email,
             Industry = industry,
             City     = city
         };
         _userRegisterService.AddUserRegister(entity);
         _userRegisterService.Save();
         return(new JObject
         {
             { "Result", "success" },
             { "Info", "感谢您申请试用智地数据平台,我们的工作人员会尽快与你取得联系。" }
         });
     }
     catch (Exception ex)
     {
         return(new JObject
         {
             { "Result", "fail" },
             { "Info", ex.ToString() }
         });
     }
 }