public async Task <IActionResult> Edit(int id, Day day) { if (id != day.Id) { return(NotFound()); } if (ModelState.IsValid) { var myDays = await _dayService.EditDay(id, day); return(RedirectToAction(nameof(Index))); } return(View(day)); }