Fix минимальной цены
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 18s
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 18s
This commit is contained in:
parent
c04c5fd9a0
commit
839b945646
@ -66,7 +66,7 @@ public class PublicService : IPublicService
|
||||
{
|
||||
try
|
||||
{
|
||||
var universityDirection = await _databaseContext.UniversityDirections.OrderByDescending(x => x.PlaceCost).Where(x => x.UniversityId == universityId).FirstAsync();
|
||||
var universityDirection = await _databaseContext.UniversityDirections.OrderBy(x => x.PlaceCost).Where(x => x.UniversityId == universityId).FirstAsync();
|
||||
if (universityDirection == null)
|
||||
return 0;
|
||||
return universityDirection.PlaceCost;
|
||||
|
Loading…
x
Reference in New Issue
Block a user