public IActionResult AddDay(NewDayVm model) { model.UserId = User.FindFirstValue(ClaimTypes.NameIdentifier); var id = _dayService.AddDay(model); //string id2 = User.FindFirstValue(ClaimTypes.NameIdentifier); //_mealService.AddMealsToDay(id); return(RedirectToAction("Index")); }