I don't know what I'm doing anymore
This commit is contained in:
parent
ea9cc32534
commit
8fdee0cb67
17 changed files with 342 additions and 116 deletions
|
@ -20,11 +20,11 @@ namespace Sledgemapper.Api.Handlers
|
|||
|
||||
public async Task<bool> Handle(NewSessionCommand notification, CancellationToken cancellationToken)
|
||||
{
|
||||
// _dbcontext.MapLogs.Add(new Session
|
||||
// {
|
||||
// SessionName = notification.SessionName,
|
||||
// OwnerUserId = notification.UserId
|
||||
// });
|
||||
_dbcontext.Sessions.Add(new Session
|
||||
{
|
||||
SessionName = notification.SessionName,
|
||||
OwnerUserId = notification.UserId
|
||||
});
|
||||
await _dbcontext.SaveChangesAsync();
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue