public UserDto GetUser(string email) { lock (Lock) { var query = new UserQuery(email); return _userQueryHandler.GetById(query); } }
public bool SetUser(UserDto user) { lock (Lock) { var query = new UserQuery(user.Email); return _userQueryHandler.SetById<UserDto>(query, user); } }