public object Any(WmsLogin request) { var signature = this.Request.Headers.GetValues("Signature"); if (signature != null) { if (auth.AuthResult(signature[0].ToString(), this.Request.RawUrl)) { var Result = loginLogic.LoginCheck(request).ToString(); return new LoginResponse { strResult = Result }; } } return new AuthFaildResponse { strResult = "No Authentication." }; }
public object Any(WmsLogin request) { var signature = this.Request.Headers.GetValues("Signature"); if (signature != null) { if (auth.AuthResult(signature[0].ToString(), this.Request.RawUrl)) { var Result = loginLogic.LoginCheck(request).ToString(); return(new LoginResponse { strResult = Result }); } } return(new AuthFaildResponse { strResult = "No Authentication." }); }