Пример #1
0
        //public IActionResult Index([FromServices] IDatetime datetime)
        //{
        //    var now = _datetime.Now();

        //    return View();
        //}

        //public IActionResult Index([FromRoute] int id)
        //{
        //    var now = _datetime.Now();

        //    return View();
        //}

        public IActionResult Index()
        {
            this._db.Database.EnsureCreated();
            var now = _datetime.Now();

            return(View());
        }