Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> Delete(DeleteGuildItemViewModel model)
        {
            await HttpClientHelper.ClientBot().GetGuildAsync(model.Id).Result.DeleteAsync();

            return(PartialView("_Delete", null));
        }