Exemple #1
0
        public ActionResult Delete(int id)
        {
            var b = Bug.FindByID(id);

            b.Delete();
            return(RedirectToAction("Index"));
        }
Exemple #2
0
 public ActionResult Edit(int id)
 {
     ViewBag.employees = new SelectList(Employee.FindAll(), "EmpID", "FullName");
     ViewBag.statees   = new SelectList(new string[] { "Open", "In Process", "Closed" });
     ViewBag.types     = new SelectList(new string[] { "Bug", "Feature", "Request" });
     ViewBag.projects  = new SelectList(Project.FindAll(), "ProjID", "ProjectNO");
     return(View(Bug.FindByID(id)));
 }
Exemple #3
0
 public ActionResult Details(int id)
 {
     return(View(Bug.FindByID(id)));
 }