public IEnumerable <Faq> GetAll() { try { return(_faqRepository.GetAll()); } catch (Exception exception) { AddLogError(exception, "Error when get all faqs"); } return(null); }
public ActionResult k_jRead([DataSourceRequest] DataSourceRequest request) { return(Json(repository.GetAll().OrderBy(p => p.Title).ToDataSourceResult(request))); }
public IActionResult OnGet() { FAQs = _faqRepository.GetAll(); return(Page()); }