- Timestamp:
- 05/12/22 16:36:14 (2 years ago)
- Branches:
- master
- Children:
- cc4db18
- Parents:
- 7a983b0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
resTools_backend/backend/Services/RestaurantService.cs
r7a983b0 rd76b7ee 30 30 { 31 31 RestaurantResponse res = await _context.Restoraunts 32 .Include(x => x.Reservations)33 32 .Select(x => new RestaurantResponse() 34 33 { … … 36 35 Name = x.Name, 37 36 OwnerId = x.OwnerFk, 38 Reservations = x.Reservations.Select(t => new ReservationResponse()39 {40 ContactName = t.ContactName,41 ContactNumber = t.ContactNumber,42 Persons = t.Persons,43 StartDate = t.StartDate,44 ReservationStatus = t.ReservationStatus,45 Id = t.Id,46 ReservationPlace = t.ReservationPlace,47 ReservationType = t.ReservationType48 }).ToList()49 37 }) 50 38 .FirstOrDefaultAsync();
Note:
See TracChangeset
for help on using the changeset viewer.