public List <Serie> BuscarSerie(string busqueda) { List <Serie> isbns = null; SeriesLibroController controller = new SeriesLibroController(); try { if (AutenticacionSitio.IsUsuarioAutenticado()) { isbns = controller.BuscarPor(busqueda, new int?(30)); } else { HttpContext.Current.Response.StatusCode = (int)HttpStatusCode.Unauthorized; } if (isbns == null || isbns.Count <= 0) { isbns = new List <Serie>() { new Serie() { IdSerie = "", NombreLatin = "NO SE ENCONTRO EL ISBN", NombreGriego = "NO SE ENCONTRO EL ISBN" } }; } } catch (Exception ex) { isbns = new List <Serie>() { new Serie() { IdSerie = "", NombreLatin = "NO SE ENCONTRO EL ISBN", NombreGriego = "NO SE ENCONTRO EL ISBN" } }; HttpContext.Current.Response.StatusCode = (int)HttpStatusCode.InternalServerError; } return(isbns); }