Пример #1
0
 public static List <PI_BA_Categoria> GetCategoriaByJuez(String email)
 {
     using (var dbContext = new wPremiosInstitucionalesdbEntities())
     {
         try
         {
             var juez = InformacionPersonalJuezService.GetJuezByCorreo(email);
             return(dbContext.GetCategoriaByIdJuez(juez.cveJuez).ToList());
         }
         catch (Exception Ex)
         {
             Console.WriteLine("Catched Exception: " + Ex.Message + Environment.NewLine);
             return(null);
         }
     }
 }