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

            _registeredUserRepository.AddRegisteredUserToEvent(registeredUserId, eventDefinitionId);
        }