protected override DataSourceView GetView(string viewName) { DataSourceView result; if ("/" == viewName) { result = new AccessView(this, viewName); } else { if (!string.IsNullOrEmpty(viewName)) { result = new AccessRolesView(this, viewName); } else { result = new NoEditView(this, string.Empty); } } return(result); }
protected override DataSourceView GetView(string viewName) { DataSourceView result; if ("/" == viewName) { result = new AccessView(this, viewName); } else { if (!string.IsNullOrEmpty(viewName)) { result = new AccessRolesView(this, viewName); } else { result = new NoEditView(this, string.Empty); } } return result; }