コード例 #1
0
        protected override void HandleMessage(WebSocket sender, Message <ParticipantCommands> received)
        {
            if (received.Command != ParticipantCommands.Register)
            {
                return;
            }

            //Deserialize received Participant, assign starter and store in DB
            _participantManager.AddParticipant(((JObject)received.Data).ToObject <Participant>());
        }
コード例 #2
0
        public ActionResult Registration(ParticipantDto objMemberDto)
        {
            ParticipantManager objMemberManager = new ParticipantManager();
            bool status = objMemberManager.AddParticipant(objMemberDto);

            if (status)
            {
                return(RedirectToAction("Login"));
            }
            else
            {
                return(Content("Error"));
            }
        }