public async Task <ActionResult <DriverDto> > Create(CreatingDriverDto obj) { var dto = DriverMapper.toDTO(obj); var driver = await _service.AddAsync(dto); return(CreatedAtAction(nameof(GetGetById), new { Id = driver.Id }, driver)); }
public async Task <ActionResult <DriverDto> > Create(CreatingDriverDto obj) { var dto = DriverMapper.toDTO(obj); var driver = await _service.AddAsync(dto); return(CreatedAtAction(nameof(GetGetById), new { Id = driver.Id }, driver)); }