public static bool CommandOrIdExists(CommandInfoModel displayedCommand)
        {
            var filtercommand = Builders <CommandInfoModel> .Filter.Eq(x => x.Command, displayedCommand.Command);

            var filterid = Builders <CommandInfoModel> .Filter.Eq(x => x.Id, displayedCommand.Id);

            var filter = Builders <CommandInfoModel> .Filter.Or(filtercommand, filterid);

            return(Mongo.GetCount(filter) > 0);
        }
 public static void DeleteOne(CommandInfoModel model) => Mongo.DeleteOne(model);
 public static void UpdateOne(CommandInfoModel displayedGroup) => Mongo.UpdateOne(displayedGroup);
 public static void InsertOne(CommandInfoModel model) => Mongo.InsertOne(model);