internal async Task CreateRole(UserRole role) { LogWarning(Localized.Resources.StatusConnecting); var successful = await _membershipService.CreateRole(role); if (successful) { _roles.Add(role); LogSuccess(Localized.Resources.StatusItemCreated); } else { LogFailure(Localized.Resources.StatusFailedToCreateItem); } }