//TODO: add date on the worklog
        public ActionResult WorkLog()
        {
            WorkLog model = new WorkLog ();
            model.Project = new Project ();

            return View (model);
        }
        public ActionResult WorkLog(WorkLog model)
        {
            if (ModelState.IsValid) {
                model = Business.AddWorkLog (model);

                return RedirectToAction ("Projects");
            }

            return View(model);
        }
示例#3
0
 public WorkLog AddWorkLog(WorkLog w)
 {
     return DAL.AddWorkLog (w);
 }