Exemplo n.º 1
0
        public ActionResult About(AboutUsInfo model)
        {
            AboutUs aboutUs = new AboutUs();
            bool returnVal = true;
            if (ModelState.IsValid)
            {
                if (model.AboutUsId > 0)
                {
                    returnVal = aboutUs.Set(model);
                }
                else
                {
                    returnVal = aboutUs.Insert(model);
                }
            }

            return this.Json(returnVal, JsonRequestBehavior.AllowGet);
        }