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