Beispiel #1
0
        public async Task <IActionResult> AddTime(NewTimeModel model)
        {
            var time = new Time
            {
                Start = model.Start,
                End   = model.End,
            };
            await _timeService.AddTime(time);

            return(RedirectToAction("Index", "Time"));
        }