public int Delete(string id) { int result = 0; userVM.Delete(id); var list = personRoleVM.GetListAll().Where(x => x.S_PERSONID == id).ToList(); if (list != null && list.Count > 0) { list.ForEach(x => personRoleVM.Delete(x)); } return(result); }