Exemple #1
0
        public ActionResult Index(Comment model)
        {
            var op = new AddCommentOperation(model.Username, model.Message);

            op.ExcecuteTransaction();
            return(RedirectToAction("Index"));
        }
Exemple #2
0
        public ActionResult SendFeedback(Comment model)
        {
            var op = new AddCommentOperation(model);

            op.ExcecuteTransaction();
            return(Json("Отправлено"));
        }