public async Task <IActionResult> Index() { var menuOfTheDay = new MenuOfTheDayViewModel(); var menuListOperation = await _menubo.ListUnDeletedAsync(); if (!menuListOperation.Success) { return(View("Error")); } if (menuListOperation.Result.Count == 0) { return(View("Error")); } var servingListOperation = await _servingbo.ListUnDeletedAsync(); if (!servingListOperation.Success) { return(View("Error")); } if (servingListOperation.Result.Count == 0) { return(View("Error")); } var dishListOperation = await _dishbo.ListUnDeletedAsync(); if (!dishListOperation.Success) { return(View("Error")); } if (dishListOperation.Result.Count == 0) { return(View("Error")); } var drListOperation = await _drbo.ListUnDeletedAsync(); if (!drListOperation.Success) { return(View("Error")); } if (drListOperation.Result.Count == 0) { return(View("Error")); } var mealListOperation = await _mealbo.ListUnDeletedAsync(); if (!mealListOperation.Success) { return(View("Error")); } if (mealListOperation.Result.Count == 0) { return(View("Error")); } var courseListOperation = await _coursebo.ListUnDeletedAsync(); if (!courseListOperation.Success) { return(View("Error")); } if (courseListOperation.Result.Count == 0) { return(View("Error")); } }