Both aproaches are posible. Particulary i do prefer the WebApi one, wich will let your package less Coupled.