public IActionResult Faq() { FaqVm faqvm = new FaqVm { Faqs = _work.Faq.GetAll().OrderBy(x => x.Order).ToList(), }; return(View(faqvm)); }
public IActionResult Faq() { FaqVm faqvm = new FaqVm { Faqs = _work.Faq.GetAll() }; return(View(faqvm)); }
public static object Post(FaqVm vm) { if (vm.FAQID > 0) { if (Utils.CheckPermission(3, 24, Utils.LoggedUser.Roles) < 1) { return(Utils.ServiceResponse("", new ModelResponse(101), null)); } } else { if (Utils.CheckPermission(2, 24, Utils.LoggedUser.Roles) < 1) { return(Utils.ServiceResponse("", new ModelResponse(101), null)); } } var mr = Mgr.Post(Utils.LoggedUser, vm); return(Utils.ServiceResponse(mr, null)); }