public void EditShouldBe_OK() { var model = new DeptViewModel(); model.Department.Id = 20; model.Department.DeptCode = "112"; model.Department.DeptName = "测试部"; model.Department.Subordinate = "404,技术部"; model.Department.Description = "测试部门"; bool result = deptManager.Edit(model); Assert.True(result); }
public ActionResult Edit(Dept de) { return(Json(DeptManager.Edit(de), JsonRequestBehavior.AllowGet)); }