Пример #1
0
        private async Task <YachtSearchViewModel> PreparingYatchSearchViewModel(YachtSearchModel searchModel)
        {
            var model = new YachtSearchViewModel();

            model.YachtSearchModel = searchModel;

            var typeResponse = await _commonValueService.GetListCommonValueByGroup(CommonValueConstant.YACHT_TYPE);

            model.YachtTypes = typeResponse.GetDataResponse();
            return(model);
        }
Пример #2
0
        public IActionResult GetListCommonValueByGroup(string valueGroup)
        {
            var result = _commonValueService.GetListCommonValueByGroup(valueGroup);

            return(Ok(result));
        }