public bool Update(List <PageControlsProvider> roleDetailsList) { if (this.RoleName.Length == 0) { throw new Exception("Role Name never empty"); } return(dataAccess.Update(this, roleDetailsList)); }