public void Blacklist(User user, string reason) { UserRepository.Change(user, (ref User u) => u.BlacklistReason = reason); }
public void DeviceAttach(User user, Device device) { UserRepository.Change(user, (ref User u) => u.Device = device); }
public void DeviceDetach(User user) { UserRepository.Change(user, (ref User u) => u.Device = null); }
public async Task<Profile> Authenticate(User user, Device device, string password) { return await RefugeesUnitedService.Login(device, user.RefUnitedUsername, password); }