moving to guids
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michele Scandura 2021-09-16 16:53:10 +01:00
parent 195533bce0
commit d0663e1471
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
using Refit;
using Sledgemapper.Shared.Entities;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
@ -12,7 +13,7 @@ namespace Sledgemapper
Task<Session> Session(string sessionName);
[Post("/map/{campaignName}/{sessionName}")]
Task<bool> NewSession(string campaignName, string sessionName);
Task<bool> NewSession(Guid campaignid, string sessionName);
[Post("/session/{sessionName}/snapshot")]
Task SaveSnapshot([Body] Session session, string sessionName);

View File

@ -34,7 +34,7 @@ namespace Sledgemapper.UI
var successful = false;
try
{
await CommunicationManager.Api.NewSession(State.Instance.CampaignName, localContent.TxtCampaign.Text);
await CommunicationManager.Api.NewSession(State.Instance.CampaignId, localContent.TxtCampaign.Text);
}
catch (Exception ex)