public ActionResult GetMagazines() { var data = _magazineService.GetMagazines().OrderByDescending(b => b.Name).Select(b => new { ID = b.Id, b.Name, b.Number, b.YearOfPublishing, }).ToList(); return(Json(data, JsonRequestBehavior.AllowGet)); }
public JsonResult GetMagazines() { var items = _service.GetMagazines(); return(Json(items, JsonRequestBehavior.AllowGet)); }
public ActionResult GetMagazines() { var magazines = _magazineService.GetMagazines(); return(Json(magazines, JsonRequestBehavior.AllowGet)); }