public ActionResult EditFaq(carrot_FaqCategory model)
        {
            if (ModelState.IsValid)
            {
                using (FaqHelper fh = new FaqHelper(this.SiteID)) {
                    var fc = fh.CategoryGetByID(model.FaqCategoryID);

                    if (fc == null || model.FaqCategoryID == Guid.Empty)
                    {
                        model.FaqCategoryID = Guid.NewGuid();
                        fc               = new carrot_FaqCategory();
                        fc.SiteID        = this.SiteID;
                        fc.FaqCategoryID = model.FaqCategoryID;
                    }

                    fc.FAQTitle = model.FAQTitle;

                    fh.Save(fc);
                }

                return(RedirectToAction("Index"));
            }
            else
            {
                return(View("EditFaq", model));
            }
        }
        public ActionResult CreateFaq()
        {
            carrot_FaqCategory model = new carrot_FaqCategory();

            model.SiteID = this.SiteID;

            return(View("EditFaq", model));
        }
        public carrot_FaqCategory Save(carrot_FaqCategory item)
        {
            if (item.FaqCategoryID == Guid.Empty) {
                item.FaqCategoryID = Guid.NewGuid();
            }

            if (!db.carrot_FaqCategories.Where(x => x.FaqCategoryID == item.FaqCategoryID).Any()) {
                db.carrot_FaqCategories.InsertOnSubmit(item);
            }

            db.SubmitChanges();

            return item;
        }
 public ActionResult CreateFaq(carrot_FaqCategory model)
 {
     return(EditFaq(model));
 }