/// <summary> /// Allows to delete a configuration /// </summary> /// <param name="id"> /// The configuration's id to delete /// </param> /// <returns> /// /// </returns> public String deleteConfiguration(String id) { if (this.Request.IsAjaxRequest()) { try { adjudicatingModel.DeleteRow(id); return("1"); } catch (Exception e) { //ignored } } return("0"); }
public bool deleteSemaphore(string id) { if (id == null || id == "") { return(false); } try { semaphoredb.DeleteRow(id); return(true); } catch (Exception ex) { return(false); } }