Пример #1
0
        public bool Save()
        {
            SharppService ss = new SharppService();

            ss.PostSharpp(this);
            return(true);
        }
Пример #2
0
        public ActionResult Create([Bind(Include = "Id,Autor,Texto,Registro,Like,Resposta")] Sharpp sharpp)
        {
            if (ModelState.IsValid)
            {
                _sharpp.PostSharpp(sharpp);
                return(RedirectToAction("Index"));
            }

            return(View(sharpp));
        }