public async Task <IResultModel> Add(UserWorkHistoryAddModel model) { var entity = _mapper.Map <UserWorkHistoryEntity>(model); var result = await _repository.AddAsync(entity); return(ResultModel.Result(result)); }
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)); }