public ActionResult Register(MyEventsIdentity identity, int eventDefinitionId)
 {
     _registeredUserRepository.AddRegisteredUserToEvent(identity.UserId, eventDefinitionId);
     return(RedirectToAction("Detail", new { eventDefinitionId = eventDefinitionId }));
 }
Esempio n. 2
0
        public void PostRegisteredUserToEvent(int registeredUserId, int eventDefinitionId)
        {
            ValidateRegisteredUserId(registeredUserId);

            _registeredUserRepository.AddRegisteredUserToEvent(registeredUserId, eventDefinitionId);
        }