public async Task <CommendResumeOutput> CreateAsync(CommendResumeInput input) { var model = input.MapTo <CommendResume>(); var id = await _repository.InsertAndGetIdAsync(model); var ret = new CommendResumeOutput(); ret.InStanceId = model.Id.ToString(); return(ret); }
public async Task UpdateAsync(CommendResumeInput input) { var model = input.MapTo <CommendResume>(); await _repository.UpdateAsync(model); }