Esempio n. 1
0
        public IActionResult Get_Search(string value)
        {
            var resBody = new ResponeBodyModel <List <ProductSizeDto> >();

            try
            {
                resBody.errorCode    = "0";
                resBody.errorMessage = "";
                resBody.result       = _productSizeService.get_search(value);
                resBody.totalRecord  = resBody.result.Count;
            }
            catch (NullReferenceException)
            {
                resBody.errorMessage = "404";
            }
            catch (Exception ex)
            {
                resBody.errorMessage = ex.ToString();
            }

            return(new ObjectResult(resBody));
        }