Ejemplo n.º 1
0
 public ActionResult DeleteBookAjax(string id)
 {
     try
     {
         string result = IBOVirtualAPI.Delete <Book>(id);
         return(Json(new { success = true }));
     }
     catch
     {
         return(Json(new { success = false }));
     }
 }
Ejemplo n.º 2
0
 public ActionResult DeleteFollowupAjax(int id)
 {
     try
     {
         string result = IBOVirtualAPI.Delete <ContactFollowup>(id.ToString());
         return(Json(new { success = true }));
     }
     catch
     {
         return(Json(new { success = false }));
     }
 }
Ejemplo n.º 3
0
 public ActionResult DeleteContactAjax(string id)
 {
     try
     {
         string result = IBOVirtualAPI.Delete <Contact>(id);
         return(Json(new { success = true }));
     }
     catch
     {
         return(Json(new { success = false, message = "There was an issue with the server, please try again latter." }));
     }
 }
Ejemplo n.º 4
0
        public ActionResult DeleteAlert(String id)
        {
            string result = IBOVirtualAPI.Delete <Alert>(id);

            return(RedirectToAction("Index"));
        }