コード例 #1
0
        public JsonResult EditChildValues(Child child)
        {
            var curChild = BL.GetChildForId(child.ChildId);

            curChild.ChildAge     = child.ChildAge;
            curChild.ChildName    = child.ChildName;
            curChild.ChildSex     = child.ChildSex;
            curChild.UserAuthCode = child.UserAuthCode;

            BL.EditChild(curChild);
            return(Json(child, JsonRequestBehavior.AllowGet));
        }