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