Skip to content

Commit

Permalink
refactor: move searchdate models into models.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
JTraill committed Feb 14, 2025
1 parent a0d7b48 commit 75916cb
Show file tree
Hide file tree
Showing 3 changed files with 1,362 additions and 1,387 deletions.
4 changes: 2 additions & 2 deletions api/Services/CourtListService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ await _filesClient.FilesCourtCalendarDetailsByDayAsync(_requestAgencyIdentifierI

var civilFileIds = civilCourtCalendarAppearances.SelectToList(ccl => ccl.PhysicalFileId);
var criminalFileIds = criminalCourtCalendarAppearances.SelectToList(ccl => ccl.MdocJustinNo);

if (civilFileIds.Count == 0 && criminalFileIds.Count == 0)
return new Models.CourtList.CourtList();

Expand Down Expand Up @@ -373,7 +373,7 @@ private ICollection<CriminalCourtList> PopulateCriminalCourtListFromCourtCalenda
return courtList;
}

public async Task<SearchDateClient.ActivityAppearanceResultsCollection> GetCourtListAppearances(string locationId, int judgeId, string roomCode, DateTime date)
public async Task<PCSSCommon.Models.ActivityClassUsage.ActivityAppearanceResultsCollection> GetCourtListAppearances(string locationId, int judgeId, string roomCode, DateTime date)
{
var results = await _searchDateClient.GetCourtListAppearancesAsync(int.Parse(locationId), date.ToString("dd-MMM-yyyy"), judgeId, roomCode, null);
return results;
Expand Down
Loading

0 comments on commit 75916cb

Please sign in to comment.