コード例 #1
0
        public JsonResult SaveAdminComment(AdminCommentsModel model)
        {
            if (ModelState.IsValid)
            {
                model.Save();

                return(Json(model.AdminCommentId));
            }

            return(null);
        }
コード例 #2
0
        public ActionResult AddAdminCommentsPartial(int?id)
        {
            if (id.HasValue)
            {
                var model = new AdminCommentsModel(id.Value);

                return(PartialView("Partials/_addAdminComment", model));
            }

            return(null);
        }