예제 #1
0
 public IHttpActionResult AddUserSiteByEnroll(VMSite.SignUp obj)
 {
     if (ModelState.IsValid)
     {
         try
         {
             obj.Password = obj.Password.FixFarsi().EncryptData();
             bool ret = BisUserSite.AddUserSiteByEnroll(obj);
             if (ret)
             {
                 return(Ok(ret));
             }
             else
             {
                 return(NotFound());
             }
         }
         catch
         {
             return(NotFound());
         }
     }
     else
     {
         PublicFunctions getError = new PublicFunctions();
         return(Content(HttpStatusCode.NotFound, getError.GetErrorListFromModelState(ModelState)));
     }
 }
예제 #2
0
 public bool AddUserSiteByEnroll(VMSite.SignUp SignUp)
 {
     return(sqlHelper.RunProcedure("sp_tblUserSite_InsertByEnroll", SignUp, true) > 0);
 }