Пример #1
0
        public async Task <IResponseOutput> AddAsync(DictionaryAddInput input)
        {
            var dictionary = _mapper.Map <DictionaryEntity>(input);
            var id         = (await _dictionaryRepository.InsertAsync(dictionary)).Id;

            return(ResponseOutput.Result(id > 0));
        }
Пример #2
0
 public async Task <IResponseOutput> Add(DictionaryAddInput input)
 {
     return(await _dictionaryServices.AddAsync(input));
 }