Example #1
0
        public int addPhoto(int idPlayer, string filename)
        {
            JOUEUR j = (JOUEUR)(_context.JOUEURs.FirstOrDefault(joueur => joueur.ID == idPlayer));

            j.PHOTO = "ftp://51.144.166.162/profil/" + filename + "_" + idPlayer + ".png";
            return(_context.SaveChanges());
        }
Example #2
0
        public string GetImageEtape(string imgEtape, int idPlayer)
        {
            JOUEUR joueur = _context.JOUEURs.FirstOrDefault(j => j.ID == idPlayer - 1);

            string imgProfil   = joueur.PHOTO;
            string imgAValider = imgEtape;



            checkFace(imgProfil, imgAValider);

            if (true)
            {
                return("");
            }
        }