public short AddUserInfo(userInfo rn)
 {
     try
     {
         db.userInfos.InsertOnSubmit(rn);
         db.SubmitChanges();
         return 1;
     }
     catch (Exception error)
     {
         return 3;
     }
 }
 partial void DeleteuserInfo(userInfo instance);
 partial void UpdateuserInfo(userInfo instance);
 partial void InsertuserInfo(userInfo instance);
        public object creatReqUser(userInfo rn)
        {
            Results<string> result = new Results<string>();

            try
            {
                HelperData h = new HelperData();
                rn.pass = new CustomMembershipProvider().EncryptPassword(rn.pass);
                rn.deleted = false;

                Int16 t = h.AddUserInfo(rn);
                if (t!=0)
                {
                        result.IsSuccessfull = true;

                }
            }
            catch (Exception error)
            {

                result.IsSuccessfull = false;
                result.Message = error.Message;
            }
            return result;
        }
 public static string creatReqUser(userInfo rn)
 {
     manageBLL mb = new manageBLL();
     return JsonConvert.SerializeObject(mb.creatReqUser(rn));
 }