コード例 #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));
        }
コード例 #2
0
        public IActionResult EventIndividual(int id)
        {
            EventModel vm = logic.GetEvent(id);

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