public async Task UpdateBusline(UpdateBuslineRequest request, int id) { var busline = new Busline() { Id = id, Number = request.Number }; _context.Buslines.Update(busline); await _context.SaveChangesAsync(); }
public async Task <IActionResult> UpdateAsync(UpdateBuslineRequest request, int id) { await _buslineRepository.UpdateBusline(request, id); return(Ok()); }