public void Authenticate(string login, string password, Action onAuthenticated, Action<ExceptionInfo> onError)
 {
     var requestDispatcher = _asycnRequestDispatcherFactory.CreateAsyncRequestDispatcher();
     requestDispatcher.Add(new GetUserProfileRequest {Login = login, Password = password});
     requestDispatcher.ProcessRequests(r =>
                                           {
                                               _currentRecruiter = r.Get<GetUserProfileResponse>().Recruiter;
                                               onAuthenticated();
                                           }, onError);
 }
Beispiel #2
0
        public void Authenticate(string login, string password, Action onAuthenticated, Action <ExceptionInfo> onError)
        {
            var requestDispatcher = _asycnRequestDispatcherFactory.CreateAsyncRequestDispatcher();

            requestDispatcher.Add(new GetUserProfileRequest {
                Login = login, Password = password
            });
            requestDispatcher.ProcessRequests(r =>
            {
                _currentRecruiter = r.Get <GetUserProfileResponse>().Recruiter;
                onAuthenticated();
            }, onError);
        }
 public void AddRecruiter(RecruiterDto recruiterDto)
 {
     _recruiterRepository.AddRecruiter(_mapper.Map <RecruiterDto, Recruiter>(recruiterDto));
 }