public static void DeleteOne(EventTriggerModel model)
        {
            if (model.User != (Variables.LoggedUser as UserModel).Id)
            {
                return;
            }

            Mongo.DeleteOne(model);
        }
        public bool Delete(out Entity deletedEntity)
        {
            deletedEntity = null;
            if (Mongo.DeleteOne(this))
            {
                deletedEntity = this;
                return(true);
            }

            return(false);
        }
 public static bool DeleteOne(UserModel entity) => Mongo.DeleteOne(entity);
 public static void DeleteOne(FilterDefinition <UserModel> filter) => Mongo.DeleteOne(filter);
 public static bool DeleteOne(UserGroupModel entity)
 {
     return(Mongo.DeleteOne(entity));
 }
 public static void DeleteOne(CommandInfoModel model) => Mongo.DeleteOne(model);