Exemplo n.º 1
0
        public ActionResult Testimonals(string Name, string Email, string Description)
        //public ActionResult Testimonals(FormCollection frmcoll)
        {
            //if (frmcoll != null)
            //{
            testidata objdata = new testidata();

            objdata.Name        = Name;
            objdata.Email       = Email;
            objdata.Description = Description;

            //objdata.Name = frmcoll["txtfname"];
            //objdata.Email = frmcoll["txtemail"];
            //objdata.Description = frmcoll["txtdesc"];
            int result = objAdmin.CreateTestimonals(objdata);

            //}
            //return Json(result);
            return(Json(result));
        }