public bool DeleteTeam(string id) { try { TeamCollection.DeleteOne(a => a.Id == id); return(true); } catch (TimeoutException e) { Log.Error("Received time out for deleting team => ", e); return(false); } catch (Exception e) { Log.Error("Failed to delete team => ", e); return(false); } }