public LoadGovIdTypeResponse GetGovIdType() { _logger.LogInformation($"Invoking endpoint: {this.HttpContext.Request.GetDisplayUrl()}"); try { var govIdType = _webMasterService.RetrieveGovIDType(); _logger.LogInformation($"Received gov id type master data {govIdType}"); return(govIdType.Count == 0 ? new LoadGovIdTypeResponse { Status = "true", Message = "No record found", GovIdType = new List <LoadGovIDType>() } : new LoadGovIdTypeResponse { Status = "true", Message = string.Empty, GovIdType = govIdType }); } catch (Exception e) { _logger.LogError($"Error in receiving gov id type data {e.StackTrace}"); return(new LoadGovIdTypeResponse { Status = "false", Message = e.Message, GovIdType = null }); } }