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