Ejemplo n.º 1
0
        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
            });
        }
Ejemplo n.º 2
0
        public ActionResult <CheckpointId> CreateCheckpoint(
            [FromQuery] string deviceId,
            [FromQuery] string userId)
        {
            var request = new CreateCheckpoint
            {
                DeviceID = deviceId,
                UserID   = userId
            };

            return(_service.Post(request));
        }