public bool addClient(Utilisateur user)
        {
            IEnumerable <Utilisateur> users = ClientsRepos.getAll().Where(client => client.username == user.username);

            if (users.Equals(null))
            {
                return(ClientsRepos.Ajouter(user));
            }
            return(false);
        }
Example #2
0
        public bool addCataloge(Cataloge cata)
        {
            IEnumerable <Cataloge> categories = CategorieRepos.getAll().Where(b => b.nom == cata.nom);

            if (categories.Equals(null))
            {
                return(CategorieRepos.Ajouter(cata));
            }
            return(false);
        }
Example #3
0
        public bool addAdmin(Admin user)
        {
            IEnumerable <Admin> users = AdminRepos.getAll().Where(client => client.username == user.username);

            if (users.Equals(null))
            {
                return(AdminRepos.Ajouter(user));
            }
            return(false);
        }
        public bool addPhoto(Photo photo)
        {
            IEnumerable <Photo> users = PhotoRepos.getAll().Where(client => client.emplacement == photo.emplacement);

            if (users.Equals(null))
            {
                return(PhotoRepos.Ajouter(photo));
            }
            return(false);
        }