This commit is contained in:
parent
195533bce0
commit
d0663e1471
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user