Exemple #1
0
 public IEnumerable <Faq> GetAll()
 {
     try
     {
         return(_faqRepository.GetAll());
     }
     catch (Exception exception)
     {
         AddLogError(exception,
                     "Error when get all faqs");
     }
     return(null);
 }
Exemple #2
0
 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());
 }