Skip to content

Commit

Permalink
Update MembershipsController.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
amos-cha authored Jul 5, 2023
1 parent 88c8e06 commit 3a45931
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions Gordon360/Controllers/MembershipsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,21 +247,6 @@ public async Task<ActionResult<MembershipView>> SetPrivacyAsync(int membershipID
return Ok(updatedMembership);
}

/// <summary>Update an existing membership item to be private or not</summary>
/// <param name="membershipID">The membership to set the privacy of</param>
/// <param name="isPrivate">The new value of Privacy for the membership</param>
/// <remarks>Calls the server to make a call and update the database with the changed information</remarks>
/// <returns>The updated membership as a MembershipView object</returns>
[HttpPatch]
[Route("{membershipID}/privacy")]
[StateYourBusiness(operation = Operation.UPDATE, resource = Resource.MEMBERSHIP_PRIVACY)]
public async Task<ActionResult<MembershipView>> SetPrivacyAsync(int membershipID, [FromBody] bool isPrivate)
{

var updatedMembership = await _membershipService.SetPrivacyAsync(membershipID, isPrivate);
return Ok(updatedMembership);
}

/// <summary>Delete an existing membership</summary>
/// <param name="membershipID">The identifier for the membership to be deleted</param>
/// <remarks>Calls the server to make a call and remove the given membership from the database</remarks>
Expand Down

0 comments on commit 3a45931

Please sign in to comment.