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); }
public async Task Put(int id, [FromBody] string value) { await valuesRepository.Update(id, value); }