public IActionResult Get_Search(string value)
        {
            var resBody = new ResponeBodyModel <List <CategoryMainDto> >();

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

            return(new ObjectResult(resBody));
        }
Exemplo n.º 2
0
        public IActionResult Get(string id)
        {
            var resBody = new ResponeBodyModel <CustomerGroupDto>();

            resBody.errorCode    = "0";
            resBody.errorMessage = "";
            resBody.totalRecord  = 0;
            resBody.result       = _bbService.get(id);
            return(new ObjectResult(resBody));
        }
Exemplo n.º 3
0
        public IActionResult Get()
        {
            var resBody = new ResponeBodyModel <List <BusinessDto> >();

            resBody.errorCode    = "0";
            resBody.errorMessage = "";
            resBody.totalRecord  = 0;
            resBody.result       = _bsService.gets();
            return(new ObjectResult(resBody));
        }
Exemplo n.º 4
0
        public IActionResult Get(string id)
        {
            var resBody = new ResponeBodyModel <ProductSeasonDto>();

            resBody.errorCode    = "0";
            resBody.errorMessage = "";
            resBody.totalRecord  = 0;
            resBody.result       = _productSeasonService.get(id);
            return(new ObjectResult(resBody));
        }
        public IActionResult Get(string id)
        {
            var resBody = new ResponeBodyModel <CategoryMainDto>();

            resBody.errorCode    = "0";
            resBody.errorMessage = "";
            resBody.totalRecord  = 0;
            resBody.result       = _cateMain.get(id);
            return(new ObjectResult(resBody));
        }
Exemplo n.º 6
0
        public IActionResult Get()
        {
            var resBody = new ResponeBodyModel <List <ProductSexDto> >();

            resBody.errorCode    = "0";
            resBody.errorMessage = "";
            //   resBody.totalRecord = _productSexService.gets().Count;
            resBody.result      = _productSexService.gets();
            resBody.totalRecord = resBody.result.Count;
            return(new ObjectResult(resBody));
        }
Exemplo n.º 7
0
        public IActionResult Get()
        {
            var resBody = new ResponeBodyModel <List <ProductFashtionImagesDto> >();

            try
            {
                resBody.errorCode    = "0";
                resBody.errorMessage = "";
                //   resBody.totalRecord = 0;
                resBody.result      = _tprdFIages.gets();
                resBody.totalRecord = resBody.result.Count;
            }
            catch (Exception) { }
            return(new ObjectResult(resBody));
        }
Exemplo n.º 8
0
        public IActionResult Get(int page, int size)
        {
            if (page <= 0 || size <= 0)
            {
                return(new ObjectResult(new List <CustomerGroupDto>()));
            }
            int total   = 0;
            var bbList  = _bbService.getPaging(page, size, out total);
            var resBody = new ResponeBodyModel <List <CustomerGroupDto> >();

            resBody.errorCode    = "0";
            resBody.errorMessage = "";
            resBody.totalRecord  = total;
            resBody.result       = bbList;
            return(new ObjectResult(resBody));
        }
Exemplo n.º 9
0
        public IActionResult Get(int page, int size)
        {
            if (page <= 0 || size <= 0)
            {
                return(new ObjectResult(new List <ProductSeasonDto>()));
            }
            int total       = 0;
            var pSeasonList = _productSeasonService.getPaging(page, size, out total);
            var resBody     = new ResponeBodyModel <List <ProductSeasonDto> >();

            resBody.errorCode    = "0";
            resBody.errorMessage = "";
            resBody.totalRecord  = total;
            resBody.result       = pSeasonList;
            return(new ObjectResult(resBody));
        }
Exemplo n.º 10
0
        public IActionResult Get(int page, int size)
        {
            if (page <= 0 || size <= 0)
            {
                return(new ObjectResult(new List <ProductFashtionImagesDto>()));
            }
            int total   = 0;
            var bList   = _tprdFIages.getPaging(page, size, out total);
            var resBody = new ResponeBodyModel <List <ProductFashtionImagesDto> >();

            resBody.errorCode    = "0";
            resBody.errorMessage = "";
            resBody.totalRecord  = total;
            resBody.result       = bList;
            return(new ObjectResult(resBody));
        }
Exemplo n.º 11
0
        public IActionResult Get()
        {
            var resBody = new ResponeBodyModel <List <ProvinceDto> >();

            try
            {
                resBody.errorCode    = "0";
                resBody.errorMessage = "";
                //    resBody.totalRecord = 0;
                resBody.result      = _bbService.gets();
                resBody.totalRecord = resBody.result.Count;
            }catch (Exception ex)
            {
                resBody.errorMessage = ex.ToString();
            }
            return(new ObjectResult(resBody));
        }
Exemplo n.º 12
0
        public IActionResult Get()
        {
            var resBody = new ResponeBodyModel <List <CustomerResoruceOnlineDto> >();

            try
            {
                resBody.errorCode    = "0";
                resBody.errorMessage = "";
                resBody.result       = _CROnlineService.gets();
                resBody.totalRecord  = resBody.result.Count;
            }
            catch (Exception ex)
            {
                resBody.errorMessage = ex.ToString();
            }
            return(new ObjectResult(resBody));
        }
Exemplo n.º 13
0
        public IActionResult Get(string id)
        {
            var resBody = new ResponeBodyModel <ProductSexDto>();

            try
            {
                resBody.errorCode    = "0";
                resBody.errorMessage = "";
                resBody.totalRecord  = 0;
                resBody.result       = _productSexService.get(id);
            }
            catch (Exception ex)
            {
                resBody.errorMessage = ex.ToString();
            }

            return(new ObjectResult(resBody));
        }
Exemplo n.º 14
0
        public IActionResult Get_Search(string value)
        {
            var resBody = new ResponeBodyModel <List <ProvinceDto> >();

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

            return(new ObjectResult(resBody));
        }