Beispiel #1
0
        public async Task DeleteSnapshotDependency(string buildConfigId, string dependencyBuildConfigId)
        {
            Log.TraceFormat("API BuildConfig.DeleteSnapshotDependency for: {0}, to: {1}", buildConfigId, dependencyBuildConfigId);

            var url = string.Format("/app/rest/buildTypes/{0}/snapshot-dependencies/{1}", buildConfigId, dependencyBuildConfigId);
            await _http.Delete(url);
        }
        // Post: Pictures/Delete/5
        public async Task <ActionResult> Delete(int id)
        {
            var response = await _clientWrapper.Delete("api/picturesapi", id);

            if (response.IsSuccessStatusCode)
            {
                return(RedirectToAction("Index"));
            }
            return(View("Error"));
        }