Пример #1
0
 public UserDto GetUser(string email)
 {
     lock (Lock)
     {
         var query = new UserQuery(email);
         return _userQueryHandler.GetById(query);
     }
 }
Пример #2
0
 public bool SetUser(UserDto user)
 {
     lock (Lock)
     {
         var query = new UserQuery(user.Email);
         return _userQueryHandler.SetById<UserDto>(query, user);
     }
 }