public async Task <IActionResult> GetMeeting([FromRoute] int meetingId) { int userId = GetUserId(); var result = await _meetingsManager.GetMeeting(meetingId, userId); if (!result.Success) { return(BadRequest(result.Message)); } var mapped = _mapper.Map <MeetingResponse>(result.Entity); return(Ok(mapped)); }
public IActionResult Get(int id) { var meeting = _meetingsManager.GetMeeting(id); if (meeting == null) { return(NotFound()); } return(Json(meeting)); }