public IEnumerable <PersonaDTO> GetLogins(String username, String password)
        {
            var query = _services.Login(username, password);
            var dtos  = from be in query
                        select Models.Factory.FactoryPersonaDTO.GetInstance().CreateDTO(be);

            return(dtos.ToList());
        }
示例#2
0
 public IActionResult Login([FromBody] Persona persona)
 {
     return(Json(
                _personaServices.Login(persona)
                ));
 }