/// <summary> /// Function to delete particular details based on the parameter /// </summary> /// <param name="RouteId"></param> /// <returns></returns> public decimal RouteDeleting(decimal RouteId) { decimal decId = 0; try { decId = spRoute.RouteDeleting(RouteId); } catch (Exception ex) { MessageBox.Show("RT8:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(decId); }
/// <summary> /// Function to Delete the Route /// </summary> public void DeleteFunction() { try { RouteSP spRoute = new RouteSP(); if (spRoute.RouteDeleting(decRouteId) == -1) { Messages.ReferenceExistsMessage(); } else { Messages.DeletedMessage(); GridFill(); Clear(); } } catch (Exception ex) { MessageBox.Show("RT7" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }