Exemplo n.º 1
0
        public async Task <IActionResult> Delete(int id)
        {
            //var category = _categoryApiService.GetByIdAsync(id);
            await _categoryApiService.Remove(id);

            return(RedirectToAction("Index"));
        }
        public async Task <IActionResult> Delete(int id)
        {
            await _categoryApiService.Remove(id);

            return(RedirectToAction("index"));
        }