コード例 #1
0
        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);
        }
コード例 #2
0
 public async Task UpdateAsync(CommendResumeInput input)
 {
     var model = input.MapTo <CommendResume>();
     await _repository.UpdateAsync(model);
 }