public ActionResult Summary(Time time) { var manager = new TimeManager(); var response = manager.GetTimes(time.EmpID); return View("Summary", response.Data); }
public ActionResult TimeSheet() { var manager = new TimeManager(); var response = manager.LoadAllTimes(); return View(response.Data); }
public ActionResult SubmitTime(Time time) { if (ModelState.IsValid) { var manager = new TimeManager(); var response = manager.CreateTime(time); return RedirectToAction("TimeSheet"); } return View("Submit"); }