Exemplo n.º 1
0
        public async Task <IActionResult> Deletes(params string[] itemId)
        {
            if (itemId == null || itemId.Length == 0)
            {
                AlertError("没有选择。");
            }
            else
            {
                foreach (var item in itemId)
                {
                    await _tagsManager.DeleteByNameAsync(item);
                }

                AlertSuccess("已删除。");
            }

            return(RedirectToAction(nameof(List)));
        }