public IList <Persona> GetByFuncion(int idFuncion) { try { return(repository.GetByFuncion(idFuncion)); } catch (Exception ex) { throw new Exception(ex.Message); } }