Skip to content

Commit

Permalink
renamed mailbox-combination route and associated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jsenning committed Jun 25, 2024
1 parent 46c33bb commit f319837
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Gordon360/Controllers/ProfilesController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,12 @@ public ActionResult<EmergencyContactViewModel> GetEmergencyContact(string userna
/// <summary>Gets the mailbox information of currently logged in user</summary>
/// <returns></returns>
[HttpGet]
[Route("mailbox-combination")]
[Route("mailbox-information")]
public ActionResult<MailboxViewModel> GetMailInfo()
{
var username = AuthUtils.GetUsername(User);

var result = profileService.GetMailboxCombination(username);
var result = profileService.GetMailboxInformation(username);
return Ok(result);
}

Expand Down
4 changes: 2 additions & 2 deletions Gordon360/Documentation/Gordon360.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Gordon360/Services/ProfileService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ public class ProfileService(CCTContext context, IConfiguration config, IAccountS
}

/// <summary>
/// get mailbox combination
/// get mailbox information (contains box combination)
/// </summary>
/// <param name="username">The current user's username</param>
/// <returns>MailboxViewModel with the combination</returns>
public MailboxViewModel GetMailboxCombination(string username)
public MailboxViewModel GetMailboxInformation(string username)
{
var mailboxNumber =
context.Student
Expand Down
2 changes: 1 addition & 1 deletion Gordon360/Services/ServiceInterfaces.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public interface IProfileService
StudentProfileViewModel? GetStudentProfileByUsername(string username);
FacultyStaffProfileViewModel? GetFacultyStaffProfileByUsername(string username);
AlumniProfileViewModel? GetAlumniProfileByUsername(string username);
MailboxViewModel GetMailboxCombination(string username);
MailboxViewModel GetMailboxInformation(string username);
DateTime GetBirthdate(string username);
Task<IEnumerable<AdvisorViewModel>> GetAdvisorsAsync(string username);
CliftonStrengthsViewModel? GetCliftonStrengths(int id);
Expand Down

0 comments on commit f319837

Please sign in to comment.