public ActionResult AddEmployee(AddOrganizationUserModel model, FormCollection collection) { if (ModelState.IsValid) { var r = Manage.AddUserOrganization(model.UserName, model.ConfirmPassword, collection["OrganizationId"].TryTo(0), 0, model.IdCard, collection["Role"], collection["EntryTime"].Is <DateTime>() ? collection["EntryTime"] : null, model.JobNum, model.OtherName, model.Phone, model.Email, model.Plane, model.WorkPlace, model.IsFemale, model.DisplayName, Request.UserHostAddress, model.Remark); TempData["success"] = "已成功添加职员"; return(Json(r)); } return(Json(-3)); }