Example #1
0
        public ActionResult Edit(int id)
        {
            BugTrackerModel btm     = new BugTrackerModel();
            BugTracker      rettemp = btm.FindBugById(id);

            return(View(rettemp));
        }
Example #2
0
        public ActionResult Delete(BugTracker bugtracker)
        {
            BugTrackerModel btm = new BugTrackerModel();

            btm.Remove(bugtracker);
            return(RedirectToAction("BugsList"));
        }
Example #3
0
        public ActionResult Delete(int id)
        {
            BugTrackerModel btm    = new BugTrackerModel();
            BugTracker      retbug = btm.FindBugById(id);

            return(View(retbug));
        }
Example #4
0
        public ActionResult Create(BugTracker bugtracker)
        {
            BugTrackerModel btm = new BugTrackerModel();

            btm.Add(bugtracker);
            return(RedirectToAction("BugsList"));
        }
Example #5
0
 public ActionResult BugsList(BugTrackerModel model)
 {
     return(View(model.BugTrackers));
 }