Example #1
0
        /// <summary>
        /// Get the Certify system version string in ActionResult.Message
        /// </summary>
        /// <returns></returns>
        public async Task <ActionResult> GetSystemVersion()
        {
            try
            {
                var result = await _client.GetAppVersion();

                return(new ActionResult(result, true));
            }
            catch (Exception exp)
            {
                return(new ActionResult {
                    IsSuccess = false, Message = "Failed to get system version: " + exp.ToString()
                });
            }
        }
Example #2
0
        public async Task <IActionResult> Get()
        {
            var versionInfo = await _client.GetAppVersion();

            return(new OkObjectResult(versionInfo));
        }