//医生账号注册 public ActionResult ManAdd2(string userID, string name, string pass, string dept, string position, string age, string sex) { accountService accounts = new accountService(); DoctorService doctorService = new DoctorService(); account account = new account(); if (accounts.AddNew1(userID, pass, name, "Doctor") == false)//ToDo { return(Json("账号已存在,请重新注册")); } account.user_ID = userID; account.name = name; int iu = int.Parse(age); doctorService.AddNew(account, dept, position, 0, iu, sex); //返回值待定 return(Json("注册成功")); }