Exemple #1
0
        public IHttpActionResult LoginUserSite(VMSite.SignIn obj)
        {
            if (ModelState.IsValid)
            {
                try
                {
                    obj.Password = obj.Password.FixFarsi().EncryptData();
                    JArray jsLogin = BisUserSite.LoginUserSite(obj);
                    return(Ok(jsLogin));
                }
                catch
                {
                    return(NotFound());
                }
            }

            else
            {
                PublicFunctions getError = new PublicFunctions();
                return(Content(HttpStatusCode.NotFound, getError.GetErrorListFromModelState(ModelState)));
            }
        }
Exemple #2
0
 public JArray LoginUserSite(VMSite.SignIn SignIn)
 {
     return(sqlHelper.ReturnJsonData("sp_tblUserSite_Login", SignIn));
 }