public ActionResult RemoveUserOrg(int?id, string user) { if (id.HasValue) { UserOrgObject.GetUserOrg(id.Value)?.Delete(); } return(UserOrgsPartial(user)); }
public UserOrgsModel(string employeeId) { UserEmployeeId = employeeId; UserOrgs = UserOrgObject.GetUserOrgs(employeeId); }