public async Task <IResultModel> Add(DictAddModel model) { var entity = _mapper.Map <DictEntity>(model); if (await _repository.Exists(entity)) { return(ResultModel.HasExists); } var result = await _repository.AddAsync(entity); return(ResultModel.Success(result)); }