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

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

            var result = await _repository.AddAsync(entity);

            return(ResultModel.Result(result));
        }