public async Task <IActionResult> GetMyEventLogs(int id) { // TODO Figure out if this is always int, otherwise type check if (id != int.Parse(User.FindFirst(ClaimTypes.NameIdentifier).Value)) { return(Unauthorized()); } else { var myEventLogs = await _repo.GetEventLogs(id); return(Ok(myEventLogs)); } }