Exemplo n.º 1
0
        public async Task <IActionResult> Delete(int id)
        {
            _foodCategory.Delete(id);
            IEnumerable <FoodCategory> data = await _foodCategory.GetAll();

            return(Json(data));
        }