Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
PhucNghi176 committed Nov 12, 2024
1 parent cbbae80 commit 98a37d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public async Task<Result> Handle(Command.CreateGroupCommand request, Cancellatio
{
Name = request.Name,
Stack = request.Stacks,
LeaderId = L
LeaderId = L,
SubjectId = request.SubjectId
};
G.Members!.Add(new Group_Student_Mapping { StudentId = L, GroupId = G.Id });
repositoryBase.Add(G);
Expand Down
2 changes: 1 addition & 1 deletion MBS_COMMAND.Contract/Services/Groups/Command.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace MBS_COMMAND.Contract.Services.Groups;

public static class Command
{
public record CreateGroupCommand(string Name, Guid MentorId, string Stacks) : ICommand;
public record CreateGroupCommand(string Name, Guid SubjectId, string Stacks) : ICommand;
public record AddMemberToGroup(Guid GroupId, Guid MemberId) : ICommand;
public record RemoveMemberFromGroup(Guid GroupId, Guid MemberId) : ICommand;
public record ChangeLeader(Guid GroupId, Guid NewLeaderId) : ICommand;
Expand Down

0 comments on commit 98a37d0

Please sign in to comment.