Ejemplo n.º 1
0
        public async Task <ActionResult> Add(string id)
        {
            if (await _stageClient.Exists(User.Identity.Name, id) == false)
            {
                return(HttpNotFound());
            }

            return(View(new UploadPackageViewModel(id)));
        }
Ejemplo n.º 2
0
        public async Task <ActionResult> Details(string id)
        {
            if (await _stageClient.Exists(User.Identity.Name, id) == false)
            {
                return(HttpNotFound());
            }

            var apiKey = await _stageClient.GetApiKey(User.Identity.Name);

            var stage = await _stageClient.Get(User.Identity.Name, id);

            return(View(new StageDetailsViewModel(apiKey, stage)));
        }