Skip to content

Commit

Permalink
https://www.youtube.com/watch?v=dQw4w9WgXcQ
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaM1 committed Jan 8, 2024
1 parent 6441870 commit b45136e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Courses/Api/GroupController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ public async Task<IResult> AddCourseToGroup([FromRoute] int groupId, [FromBody]
}

[HttpDelete]
[Route(template: "{groupId}/courses/one")]
public async Task<IResult> DeleteCourseFromGroup([FromRoute] int groupId, [FromBody] GroupAddCourseToGroupDto groupAddCourseToGroupDto)
[Route(template: "{groupId}/courses/{CourseId}")]
public async Task<IResult> DeleteCourseFromGroup([FromRoute] int groupId, [FromRoute] GroupAddCourseToGroupDto groupAddCourseToGroupDto)
{
await _groupService.DeleteCourseFromGroup(groupId, groupAddCourseToGroupDto);
return Results.Ok();
Expand Down

0 comments on commit b45136e

Please sign in to comment.