public async Task <IResultModel> Add(UserEducationHistoryAddModel model)
        {
            var entity = _mapper.Map <UserEducationHistoryEntity>(model);
            var result = await _repository.AddAsync(entity);

            return(ResultModel.Result(result));
        }
Beispiel #2
0
        public async Task <IResultModel> Add(UserEducationHistoryAddModel model)
        {
            var entity = _mapper.Map <UserEducationHistoryEntity>(model);
            //if (await _repository.Exists(entity))
            //{
            //return ResultModel.HasExists;
            //}

            var result = await _repository.AddAsync(entity);

            return(ResultModel.Result(result));
        }