예제 #1
0
파일: ValuesFcd.cs 프로젝트: andnied/public
        public async Task <ValueReadDto> Update(int id, ValueWriteDto model)
        {
            var mapped = _mapper.Map <Value>(model);

            mapped.Id = id;
            var updated = await _repo.Update(id, mapped);

            var updatedDto = _mapper.Map <ValueReadDto>(updated);

            return(updatedDto);
        }
 public async Task Put(int id, [FromBody] Student smodel)
 {
     await _repository.Update(id, smodel);
 }
예제 #3
0
 public async Task Put(int id, [FromBody] string value)
 {
     await valuesRepository.Update(id, value);
 }