Esempio 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));
        }
Esempio 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));
        }