Добавил обработку пустых запросов
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 24s

This commit is contained in:
2023-07-30 06:05:56 +03:00
parent 8e16dfe567
commit bfea515ec2
9 changed files with 89 additions and 23 deletions

View File

@ -0,0 +1,10 @@
namespace PaydayFrontend.Models;
public class University
{
public long Id { get; set; }
public string Name { get; set; }
public string FullName { get; set; }
public string ImageUrl { get; set; }
public long MinPlaceCost { get; set; }
}

View File

@ -2,6 +2,18 @@
public class UniversityDirectionsViewModel
{
public UniversityDirectionsViewModel()
{
}
public UniversityDirectionsViewModel(University university, List<Direction> directions, string searchString)
{
University = university;
Directions = directions;
SearchString = searchString;
}
public University University { get; set; }
public List<Direction> Directions { get; set; }
public string SearchString { get; set; }
}

View File

@ -1,10 +1,13 @@
namespace PaydayFrontend.Models;
namespace PaydayFrontend.Models;
public class University
public class UniversityViewModel
{
public long Id { get; set; }
public string Name { get; set; }
public string FullName { get; set; }
public string ImageUrl { get; set; }
public long MinPlaceCost { get; set; }
public UniversityViewModel(List<University> directions, string searchString)
{
Directions = directions;
SearchString = searchString;
}
public List<University> Directions { get; set; }
public string SearchString { get; set; }
}