public IActionResult GetEvent(Guid id)
        {
            var eventFromRepo = _calendarRepository.GetEvent(id);

            if (eventFromRepo == null)
            {
                return(NotFound());
            }
            var eventFromMap = Mapper.Map <CalendarEventDto>(eventFromRepo);

            return(Ok(eventFromRepo));
        }
Beispiel #2
0
 public IActionResult GetById(Guid Id)
 {
     return(Ok(_calendarRepository.GetEvent(Id)));
 }