예제 #1
0
        public ActionResult Summary(Time time)
        {
            var manager = new TimeManager();
            var response = manager.GetTimes(time.EmpID);

            return View("Summary", response.Data);
        }
예제 #2
0
        public ActionResult TimeSheet()
        {
            var manager = new TimeManager();
            var response = manager.LoadAllTimes();

            return View(response.Data);
        }
예제 #3
0
 public ActionResult SubmitTime(Time time)
 {
     if (ModelState.IsValid)
     {
         var manager = new TimeManager();
         var response = manager.CreateTime(time);
         return RedirectToAction("TimeSheet");
     }
     return View("Submit");
 }