public static bool DeleteToken(string token) { IDataProvider data = new MongoDataProvider(); try { return(data.Delete <Session>("Id", token)); } catch (Exception) { return(false); } }