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()); }
public IActionResult Login([FromBody] Persona persona) { return(Json( _personaServices.Login(persona) )); }