Exemplo n.º 1
0
        public IActionResult GetPlans(string app)
        {
            var hasPortal = appPlansBillingManager.HasPortal;

            var response = AppPlansDto.FromApp(App, appPlansProvider, hasPortal);

            Response.Headers["ETag"] = App.Version.ToString();

            return(Ok(response));
        }
Exemplo n.º 2
0
        public IActionResult GetPlans(string app)
        {
            var hasPortal = appPlansBillingManager.HasPortal;

            var response = Deferred.Response(() =>
            {
                return(AppPlansDto.FromApp(App, appPlansProvider, hasPortal));
            });

            Response.Headers[HeaderNames.ETag] = App.ToEtag();

            return(Ok(response));
        }