Exemplo n.º 1
0
        public ActionResult SyncPlayCreateGroup()
        {
            var currentSession = RequestHelpers.GetSession(_sessionManager, _authorizationContext, Request);

            _syncPlayManager.NewGroup(currentSession, CancellationToken.None);
            return(NoContent());
        }
Exemplo n.º 2
0
        public ActionResult SyncPlayCreateGroup(
            [FromBody, Required] NewGroupRequestDto requestData)
        {
            var currentSession  = RequestHelpers.GetSession(_sessionManager, _authorizationContext, Request);
            var syncPlayRequest = new NewGroupRequest(requestData.GroupName);

            _syncPlayManager.NewGroup(currentSession, syncPlayRequest, CancellationToken.None);
            return(NoContent());
        }
Exemplo n.º 3
0
        /// <summary>
        /// Handles the specified request.
        /// </summary>
        /// <param name="request">The request.</param>
        public void Post(SyncPlayNew request)
        {
            var currentSession = GetSession(_sessionContext);

            _syncPlayManager.NewGroup(currentSession, CancellationToken.None);
        }