private void DeleteDrugFromDB(string Delivery, string CriteriaType, string Criteria)
 {
     try
     {
         if (_drugAmendmentConnectionService.DeleteDrugFromDB(Delivery, CriteriaType, Criteria) > 0)
         {
             AuditLogger(Delivery, CriteriaType, Criteria, "NonActive");
             Response.Write("<script>window.alert(\'Drug Deleted Successfully...! Set IsActive to Zero\');window.location='DeleteDrugView';</script>");
         }
         else
         {
             Response.Write("<script>window.alert(\'Drug is Not Available in Database to Delete...!\');window.location='DeleteDrugView';</script>");
         }
     }
     catch (Exception)
     {
         Response.Write("<script>window.alert(\'" + UserFriendlyMessage.getMessage() + "\');window.location='DeleteDrugView'</script>");
     }
 }
 private void DeleteDrugFromDB(string Delivery, string CriteriaType, string Criteria)
 {
     try
     {
         if (_drugAmendmentConnectionService.DeleteDrugFromDB(Delivery, CriteriaType, Criteria) > 0)
         {
             AuditLogger(Delivery, CriteriaType, Criteria, "InActive");
             Response.Write("<script>window.alert(\'The drug have been successfully deleted.\');window.location='DeleteDrugView';</script>");
         }
         else
         {
             Response.Write("<script>window.alert(\'This drug does not exist.\');window.location='DeleteDrugView';</script>");
         }
     }
     catch (Exception)
     {
         Response.Write("<script>window.alert(\'" + UserFriendlyMessage.getMessage() + "\');window.location='DeleteDrugView'</script>");
     }
 }