Пример #1
0
        public async Task <ActionResult> Create([Bind(Include = "ID,Date,Start_time,End_time")] Shift shift)
        {
            if (ModelState.IsValid)
            {
                int id = await factoryBL.AddShift(shift);

                Console.WriteLine($"the new shift id: {id}");
                return(RedirectToAction("Index"));
            }
            return(View(shift));
        }