Beispiel #1
0
        public ScrimEventViewModel AcceptRequest([FromBody] int id)
        {
            if (this.User.Identity.IsAuthenticated)
            {
                var refreshedEvent = _schedulingService.AcceptRequest(id);
                var viewModel      = this.GetEventViewModel(refreshedEvent);
                _schedulingService.NotifyRequestAccepted(viewModel);

                return(viewModel);
            }
            return(null);
        }