Exemple #1
0
        /// <summary>
        /// 创建
        /// </summary>
        /// <param name="req">DTO:新增实体</param>
        /// <returns></returns>
        public async Task <IResponseEntity> CreateAsync(DictionaryEntryAddRequest req)
        {
            var item   = _mapper.Map <DictionaryEntryEntity>(req);
            var result = await _dictionaryEntryRepository.InsertAsync(item);

            return(ResponseEntity.Result(result != null && result?.Id != ""));
        }
 public async Task <IResponseEntity> Create(DictionaryEntryAddRequest req)
 {
     return(await _dictionaryDetailService.CreateAsync(req));
 }