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); }
public static Service.LogonResult TranslateFromBusinessToService(Business.LogonResult businessEntity) { return(GenericMapper.MapNew <Service.LogonResult>(businessEntity)); }