Beispiel #1
0
        public PersonaCondomini Login(string username, string password)
        {
            var service = new SferaService();
            var info = new UserInfo(0, 1);

            var persona = service.GetPersonaByUtentePassword(username, password, info);
            IList<CondominioDTO> condomini = null;
            if (persona != null)
            {
                info.Azienda = persona.Azienda;
                condomini = service.GetCondominiByPersona(persona.ID, info);
                _log.InfoFormat("Utente Loggato - {0} - persona:{1}", Library.Utility.GetMethodDescription(), persona.ID);
            }

            return new PersonaCondomini(persona, condomini);
        }