示例#1
0
        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));
        }
示例#3
0
        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));
        }