public IActionResult Get(string id) { long ID = 0; if (long.TryParse(id, out ID)) { Event ev = _srv.GetEvent(ID); if (ev != null) { return(Ok(ev)); } return(NotFound($"Couldn't find event with ID: {ID}!")); } return(BadRequest("Couldn't parse event ID!")); }