Skip to content

Commit 901a74b

Browse files
author
Paul Frank
committed
resolved Thomas comments
1 parent 80d5ea5 commit 901a74b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

TableBookingAPI/TableBooking.Logic/Repositories/GenericRepository.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public async Task Update(T entity)
4545
}
4646

4747
_objectSet.Update(entity);
48-
await _context.SaveChangesAsync();
4948
}
5049

5150
private object[] GetKeyValues(T entity)

TableBookingAPI/TableBooking/Services/BookingService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ public async Task<IActionResult> UpdateBookingAsync(UpdateBookingDto updateBooki
103103
};
104104

105105
await _unitOfWork.BookingRepository.Update(newBooking);
106-
106+
await _unitOfWork.SaveChangesAsync();
107+
107108
return new OkObjectResult(newBooking);
108109
}
109110
}

0 commit comments

Comments
 (0)