示例#1
0
 //delete
 public ActionResult Delete(int id)
 {
     if (Session["UserEmail"] != null)
     {
         hist.EliminarHistorial_Medida(id);
         return(RedirectToAction("Index"));
     }
     else
     {
         return(RedirectToAction("Login", "Login"));
     }
 }
示例#2
0
 //delete
 public ActionResult Delete(int id)
 {
     hist.EliminarHistorial_Medida(id);
     return(RedirectToAction("Index"));
 }