public async Task <IActionResult> Delete(ulong Id) { var response = await HttpClientHelper.ClientBot().GetGuildAsync(Id); var model = new DeleteGuildItemViewModel() { Id = Id, Name = response.Name }; TempData.Add("modal-success", "aususu"); return(PartialView("_Delete", model)); }
public async Task <IActionResult> Delete(DeleteGuildItemViewModel model) { await HttpClientHelper.ClientBot().GetGuildAsync(model.Id).Result.DeleteAsync(); return(PartialView("_Delete", null)); }