void IWcfService.UpdateUser(string usersId, WcfUser user) { var users = GetUsers(usersId); if (users.IsReadOnly == false) { var oldUser = users.GetByName(accounts.DefaultAccountId, user.Name); users.Update(accounts.DefaultAccountId, user.ToIUser((oldUser == null) ? string.Empty : oldUser.Password)); } }
void IWcfService.AddUser(string usersId, WcfUser user, string password) { try { var users = GetUsers(usersId); if (users.IsReadOnly == false) { users.Add(accounts.DefaultAccountId, user.ToIUser(password)); } } catch (UsersException) { } }
void IWcfService.AddUser(string usersId, WcfUser user, string password) { try { var users = GetUsers(usersId); if (users.IsReadOnly == false) users.Add(accounts.DefaultAccountId, user.ToIUser(password)); } catch (UsersException) { } }