public ActionResult Edit([Bind(Include = "TimeClockID,UserIDFK,ClockIn,ClockOut,HoursWorked,Edited")] tb_TimeClock tb_TimeClock) { if (ModelState.IsValid) { db.Entry(tb_TimeClock).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tb_TimeClock)); }
public ActionResult Create([Bind(Include = "TimeClockID,UserIDFK,ClockIn,ClockOut,HoursWorked,Edited")] tb_TimeClock tb_TimeClock) { if (ModelState.IsValid) { db.tb_TimeClock.Add(tb_TimeClock); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tb_TimeClock)); }