public async Task <IActionResult> Delete(Guid id, RAM ram = null) { try { string accessToken = await this.HttpContext.GetTokenAsync("access_token"); await ApiRequests.DeleteAsync(accessToken, string.Format("{0}/{1}/{2}", this.apiBaseUrl, this.apiController, id)); return(this.RedirectToAction(nameof(Index))); } catch { return(this.View()); } }