Skip to content

Commit

Permalink
Merge pull request #1089 from RossClark01/RoomRange-API
Browse files Browse the repository at this point in the history
Added Range_ID to the endpoint for getting all assignments
  • Loading branch information
Mrand03 authored Nov 8, 2024
2 parents 7e319f2 + 4561871 commit 2fd99f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Gordon360/Models/CCT/Housing/RA_Assigned_Ranges_View.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ namespace Gordon360.Models.CCT;
[Keyless]
public partial class RA_Assigned_Ranges_View
{
public int Range_ID { get; set; }

[StringLength(9)]
[Unicode(false)]
public string RA_ID { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ public class RA_Assigned_RangesViewModel
public string Hall_Name { get; set; }

Check warning on line 11 in Gordon360/Models/ViewModels/Housing/RA_Assigned_RangesViewModel.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'Hall_Name' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
public string Room_Start { get; set; }

Check warning on line 12 in Gordon360/Models/ViewModels/Housing/RA_Assigned_RangesViewModel.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'Room_Start' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
public string Room_End { get; set; }

Check warning on line 13 in Gordon360/Models/ViewModels/Housing/RA_Assigned_RangesViewModel.cs

View workflow job for this annotation

GitHub Actions / build

Non-nullable property 'Room_End' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
public int Range_ID { get; set; }

}
3 changes: 2 additions & 1 deletion Gordon360/Services/HousingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,8 @@ public async Task<List<RA_Assigned_RangesViewModel>> GetRangeAssignmentsAsync()
Lname = assignment.Lname,
Hall_Name = assignment.Hall_Name,
Room_Start = assignment.Room_Start,
Room_End = assignment.Room_End
Room_End = assignment.Room_End,
Range_ID = assignment.Range_ID
})
.ToListAsync();

Expand Down

0 comments on commit 2fd99f4

Please sign in to comment.