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

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

            model.UseTime = 8;

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

            db.WorlkLogs.Add(model);

            db.SaveChanges();

            return(RedirectToAction("Index"));
        }