public LogonResponse Logon(LogonRequest request)
        {
            AuthenticationActions.LogonAction action = PolicyInjection.Create <AuthenticationActions.LogonAction>();

            AuthenticationEntities.LogonResult resultParams = action.Execute(Translators.LogonTranslator.TranslateFromServiceToBusiness(request.LogonParameters));
            LogonResponse response = new LogonResponse();

            response.LogonResult = Translators.LogonTranslator.TranslateFromBusinessToService(resultParams);

            return(response);
        }
Ejemplo n.º 2
0
 public static Service.LogonResult TranslateFromBusinessToService(Business.LogonResult businessEntity)
 {
     return(GenericMapper.MapNew <Service.LogonResult>(businessEntity));
 }