| | |
| | | } |
| | | } |
| | | |
| | | //[HttpPost, HttpGet, Route("GetPDAVersion"), AllowAnonymous] |
| | | //public WebResponseContent GetPDAVersion(string version) |
| | | //{ |
| | | // try |
| | | // { |
| | | // string versionP = ConfigUtil.GetConfiguration["PDAVersion"]; |
| | | // if (Convert.ToInt32(versionP) > Convert.ToInt32(version)) |
| | | // return WebResponseContent.Instance.OK(data: true); |
| | | // else return WebResponseContent.Instance.OK(data: false); |
| | | // } |
| | | // catch (Exception ex) |
| | | // { |
| | | // return WebResponseContent.Instance.Error(ex.Message); |
| | | // } |
| | | [HttpPost, HttpGet, Route("GetPDAVersion"), AllowAnonymous] |
| | | public WebResponseContent GetPDAVersion(string version) |
| | | { |
| | | try |
| | | { |
| | | string versionP = AppSettings.Get("PDAVersion"); |
| | | if (Convert.ToInt32(versionP) > Convert.ToInt32(version)) |
| | | return WebResponseContent.Instance.OK(data: true); |
| | | else return WebResponseContent.Instance.OK(data: false); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return WebResponseContent.Instance.Error(ex.Message); |
| | | } |
| | | |
| | | //} |
| | | } |
| | | } |
| | | } |