Esempio n. 1
0
 public string UserAddContact(AddcontactUsLR AdLR)
 {
     if (SecureAuthentication != null)
     {
         int Output = CheckLoginReturnUserId(SecureAuthentication).ValueFromSQL;
         if (Output > 0)
         {
             UserContact addpro  = new UserContact();
             int         OutSave = UserContact.Add_ConatctUS(AdLR).ValueFromSQL;
             if (OutSave == 1)
             {
                 return("{\"ContactUs\" : " + Serialize(new AuthResponse(1, "Success")) + "}");
             }
             else
             {
                 return("{\"ContactUs\" : " + Serialize(new AuthResponse(0, "Failed..!")) + "}");
             }
         }
         else
         {
             return(Serialize(new AuthResponse(0, Output == -1 ? "Authentication is NULL" : "Invalid Authentication")));
         }
     }
     return(Serialize(new AuthResponse(0, "Authentication information not provided.")));
 }