public ActionResult Add() { var model = new Models.WorlkLog(); model.UseTime = 8; return View(model); }
public ActionResult Add() { var model = new Models.WorlkLog(); model.UseTime = 8; return(View(model)); }
public ActionResult Add(Models.WorlkLog model) { model.CreateTime = DateTime.Now; db.WorlkLogs.Add(model); db.SaveChanges(); return(RedirectToAction("Index")); }