public JsonResult GetAll() { List <BrochureViewModel> brochureViews = _brochureService.GetAll().ToList(); JsonResult result = Json(brochureViews, JsonRequestBehavior.AllowGet); result.MaxJsonLength = int.MaxValue; return(result); }
public async Task <IActionResult> GetAll() { GetAllBrochureViewModel getAllBrochureViewModel = await _service.GetAll(); return(Ok(getAllBrochureViewModel)); }
public ActionResult Index() { List <BrochureViewModel> allbrochures = _brochureService.GetAll(); return(View(allbrochures)); }
public IActionResult Get() { GetBrochureViewModel brochureList = _brochureService.GetAll(); return(Ok(brochureList)); }
public IActionResult Get() { var brochures = _brochureService.GetAll(); return(Ok(brochures)); }
public GetBrochureView Get() { GetBrochureView brochureViewModel = _brochureService.GetAll(); return(brochureViewModel); }
public ActionResult Index() { List <BrochureViewModel> brochureViews = _brochureService.GetAll().ToList(); return(View("Index", brochureViews)); }