コード例 #1
0
        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);
        }
コード例 #2
0
 public static Service.LogonResult TranslateFromBusinessToService(Business.LogonResult businessEntity)
 {
     return(GenericMapper.MapNew <Service.LogonResult>(businessEntity));
 }