Using Factories in AngularJS and Generic Handlers in ASP.Net classical to buld efficient client-server dialogue