Ejemplo n.º 1
0
        public ActionResult GetPublicationHouses()
        {
            var data = _houseService.GetPublicationHouses().OrderByDescending(p => p.Name).Select(p => new
            {
                p.Id,
                p.Name
            }).ToList();

            return(Json(data, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 2
0
        public ActionResult GetPublicationHouses()
        {
            var data = _publicationHouseService.GetPublicationHouses().OrderByDescending(p => p.Name).Select(P => new
            {
                ID = P.Id,
                P.Name,
                P.Adress,
                Books = _publicationHouseService.GetBooksNames(P.Books)
            }).ToList();

            return(Json(data, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 3
0
        public ActionResult GetPublicationHouses()
        {
            var products = _publicationHouseService.GetPublicationHouses();

            return(Json(products, JsonRequestBehavior.AllowGet));
        }