public async Task <IActionResult> GetMeeting(int id) { var meeting = await _repo.GetMeeting(id); var meetingToReturn = _mapper.Map <MeetingsDto>(meeting); return(Ok(meetingToReturn)); }
public async Task <IActionResult> GetMeetingById(string id) { var Meeting = await _meetingRepository.GetMeeting(id); if (Meeting == null) { return(new NotFoundResult()); } return(new ObjectResult(Meeting)); }