public LoadAVDResponse GetAVDByRI(int riId) { _logger.LogInformation($"Invoking endpoint: {this.HttpContext.Request.GetDisplayUrl()}"); try { var avd = _webMasterService.RetrieveAVD(riId); _logger.LogInformation($"Received AVD master data {avd}"); return(avd.Count == 0 ? new LoadAVDResponse { Status = "true", Message = "No record found", AVD = new LoadAVD() } : new LoadAVDResponse { Status = "true", Message = string.Empty, AVD = avd[0] }); } catch (Exception e) { _logger.LogError($"Error in receiving AVD data {e.StackTrace}"); return(new LoadAVDResponse { Status = "false", Message = e.Message, AVD = null }); } }