Beispiel #1
0
 public static bool UpdateJuez(PI_BA_Juez objJuez)
 {
     using (var dbContext = new wPremiosInstitucionalesdbEntities())
     {
         try
         {
             dbContext.UpdateJuez(objJuez.cveJuez,
                                  objJuez.Password,
                                  objJuez.Nombre,
                                  objJuez.Apellido,
                                  objJuez.Correo,
                                  objJuez.NombreImagen);
             dbContext.SaveChanges();
             return(true);
         }
         catch (Exception Ex)
         {
             Console.WriteLine("Catched Exception: " + Ex.Message + Environment.NewLine);
             return(false);
         }
     }
 }