Using promises to resolve a service