public async Task <ActionResult <Xe> > CreateBusAsync(BusCreateDto bus) { Xe busModel = _mapper.Map <Xe>(bus); await _busService.CreateBusAsync(busModel); return(CreatedAtRoute(nameof(GetBusByIdAsync), new { id = busModel.MaXe }, busModel)); }
public async Task <ActionResult <Xe> > CreateBusAsync(BusCreateDto bus) { Xe busModel = _mapper.Map <Xe>(bus); await _busService.CreateBusAsync(busModel); return(CreatedAtRoute(nameof(GetBusByIdAsync), new { id = busModel.MaXe }, busModel)); }