Ejemplo n.º 1
0
        //
        // GET: /CloudinessTemplate/Delete/5

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

            repo.Delete(repo.GetById(id));
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
 public ActionResult Delete(int id, FormCollection collection)
 {
     try
     {
         IRepository <Models.Cloudiness> repo = new CloudinessRepository();
         repo.Delete(repo.GetById(id));
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
Ejemplo n.º 3
0
        //
        // GET: /CloudinessTemplate/Edit/5

        public ActionResult Edit(int id)
        {
            IRepository <Cloudiness> repo = new CloudinessRepository();

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