private void btnDelete_Click(object sender, EventArgs e) { if (locationId == "" || locationId == null) { MessageBox.Show("Please click Data Grid User"); } else { locobjdal.DeleteLocation(locationId); ShowLocation(); Clear(); } }
public FASM_Enums.InfoMessages DeleteLocation(Int32 LocationId) { //Check if its not in use before Deleting LocationDAL.DeleteLocation(LocationId); return(FASM_Enums.InfoMessages.Success); }
public void DeleteTask(int taskid) { int result1 = taskDal.DeleteTask(taskid); int result2 = locationDal.DeleteLocation(taskid); }