Esempio n. 1
0
        public ActionResult Add()
        {
            var model = new Models.WorlkLog();
            model.UseTime = 8;

            return View(model);
        }
Esempio n. 2
0
        public ActionResult Add()
        {
            var model = new Models.WorlkLog();

            model.UseTime = 8;

            return(View(model));
        }
Esempio n. 3
0
        public ActionResult Add(Models.WorlkLog model)
        {
            model.CreateTime = DateTime.Now;

            db.WorlkLogs.Add(model);

            db.SaveChanges();

            return(RedirectToAction("Index"));
        }