예제 #1
0
        public IActionResult GetColors(string SearchStr)
        {
            var response = new OperationResponse <ICollection>();

            try
            {
                response.Data = _specificationService.GetColors(SearchStr);
            }
            catch (Exception exception)
            {
                response.State = ResponseState.Error;
                response.Messages.Add(exception.Message + " StackTrace==> " + exception.StackTrace);
                _logger.LogError(exception, "Error Getting GetColors==>" + exception.StackTrace, SearchStr);
            }
            return(new JsonResult(response));
        }