public IActionResult GetEvent(Guid id) { var eventFromRepo = _calendarRepository.GetEvent(id); if (eventFromRepo == null) { return(NotFound()); } var eventFromMap = Mapper.Map <CalendarEventDto>(eventFromRepo); return(Ok(eventFromRepo)); }
public IActionResult GetById(Guid Id) { return(Ok(_calendarRepository.GetEvent(Id))); }