Exemple #1
0
 public IReadOnlyList <CourtModel> GetCourtList()
 {
     return(_courtRepository.GetCourts()
            .Select(court => new CourtModel()
     {
         Id = court.Id,
         Name = court.Name,
         CanBooking = court.WorkingDays.Count > 0
     })
            .ToList());
 }
 public List <vw_KeyValue> GetCourts()
 {
     return(CourtRepository.GetCourts());
 }