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

            return View (model);
        }
Exemplo n.º 2
0
        public ActionResult WorkLog(WorkLog model)
        {
            if (ModelState.IsValid) {
                model = Business.AddWorkLog (model);

                return RedirectToAction ("Projects");
            }

            return View(model);
        }
Exemplo n.º 3
0
 public WorkLog AddWorkLog(WorkLog w)
 {
     return DAL.AddWorkLog (w);
 }