Exemplo n.º 1
0
        public async Task <ActionResult <GetEventModel> > GetEvent(Guid eventUid)
        {
            var validationResult = _eventValidation.ValidateGetEvent(eventUid);

            if (!validationResult.ValidationResult)
            {
                return(BadRequest(validationResult.ValidationMessage));
            }
            return(await _eventLogic.GetEvent(eventUid));
        }
Exemplo n.º 2
0
        public IActionResult EventIndividual(int id)
        {
            EventModel vm = logic.GetEvent(id);

            return(View("EventIndividual", vm));
        }