public IActionResult Create(Schedule schedule) { if (ModelState.IsValid) { schedule.UpdatedAt = DateTime.Now; schedule.CreatedAt = DateTime.Now; _iScheduleManager.Add(schedule); return(RedirectToAction(nameof(Index))); } return(View(schedule)); }