public async Task <IActionResult> Delete(int id) { _foodCategory.Delete(id); IEnumerable <FoodCategory> data = await _foodCategory.GetAll(); return(Json(data)); }