public IActionResult GetMeasureDimension(string SearchStr) { var response = new OperationResponse <ICollection>(); try { response.Data = _specificationService.GetMeasureDimension(SearchStr); } catch (Exception exception) { response.State = ResponseState.Error; response.Messages.Add(exception.Message + " StackTrace==> " + exception.StackTrace); _logger.LogError(exception, "Error Getting GetMeasureDimension==>" + exception.StackTrace, SearchStr); } return(new JsonResult(response)); }