migrate to web api + wpf app model