public async Task <IActionResult> AddMealPartial(MealPlan plan) { if (plan.Id > 0) { await _mealGroupService.UpdatePlan(plan); } else { await _mealGroupService.AddPlan(plan); } return(RedirectToAction("Details", new { id = plan.MealGroupId })); }