public CheckpointId Post(CreateCheckpoint request) { _logger.LogDebug($"InfuseSync: Create checkpoint request for DeviceID '{request.DeviceID}' UserID '{request.UserID}'"); var newCheckpoint = Plugin.Instance.Db.CreateCheckpoint(request.DeviceID, request.UserID); return(new CheckpointId { Id = newCheckpoint.Guid }); }
public ActionResult <CheckpointId> CreateCheckpoint( [FromQuery] string deviceId, [FromQuery] string userId) { var request = new CreateCheckpoint { DeviceID = deviceId, UserID = userId }; return(_service.Post(request)); }