예제 #1
0
        //
        // GET: /ClarificationTemplate/Delete/5

        public ActionResult Delete(int id)
        {
            IRepository <Models.Clarification> repo = new ClarificationTemplateRepository();

            repo.Delete(repo.GetById(id));
            return(RedirectToAction("Index"));
        }
예제 #2
0
 public ActionResult Delete(int id, FormCollection collection)
 {
     try
     {
         // TODO: Add delete logic here
         IRepository <Models.Clarification> repo = new ClarificationTemplateRepository();
         repo.Delete(repo.GetById(id));
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
예제 #3
0
        //
        // GET: /ClarificationTemplate/Edit/5

        public ActionResult Edit(int id)
        {
            IRepository <Clarification> repo = new ClarificationTemplateRepository();

            return(View(repo.GetById(id)));
        }