Пример #1
0
        public async Task <OptionsViewModel> GetOptions()
        {
            var typeOptions = await _somethingTypeRepository.GetAll();

            return(new OptionsViewModel
            {
                TypeOptions = _mapper.Map <List <IntOption> >(typeOptions),
                StatusOptions = EnumService.GetIntOptions <SomethingStatus>()
            });
        }