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))); } }
public JArray LoginUserSite(VMSite.SignIn SignIn) { return(sqlHelper.ReturnJsonData("sp_tblUserSite_Login", SignIn)); }