- Timestamp:
- 08/24/22 17:11:52 (2 years ago)
- Branches:
- master
- Children:
- d86edb7
- Parents:
- a569b7c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
resTools_backend/backend/Services/RestaurantService.cs
ra569b7c r63f5ced 47 47 Price = x.Price 48 48 }).ToList(), 49 Reviews = x.Reviews. OrderByDescending(x => x.CreatedAt).Select(x => new ReviewResponse()49 Reviews = x.Reviews.Select(x => new ReviewResponse() 50 50 { 51 CreatedAt = x.CreatedAt, 52 Description = x.Description, 51 53 Id = x.Id, 54 Stars = x.Stars, 52 55 Title = x.Title, 53 Description = x.Description,54 Stars = x.Stars,55 CreatedAt = x.CreatedAt,56 56 Username = x.User == null ? "Anonymous" : x.User.Email 57 57 }).ToList(),
Note:
See TracChangeset
for help on using the changeset viewer.