public JsonResult SaveAdminComment(AdminCommentsModel model) { if (ModelState.IsValid) { model.Save(); return(Json(model.AdminCommentId)); } return(null); }
public ActionResult AddAdminCommentsPartial(int?id) { if (id.HasValue) { var model = new AdminCommentsModel(id.Value); return(PartialView("Partials/_addAdminComment", model)); } return(null); }