Ejemplo n.º 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"));
        }
Ejemplo n.º 2
0
        public IActionResult Create()
        {
            var model = new NewTimeModel();

            return(View(model));
        }