Example #1
0
 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();
     }
 }
Example #2
0
 public FASM_Enums.InfoMessages DeleteLocation(Int32 LocationId)
 {
     //Check if its not in use before Deleting
     LocationDAL.DeleteLocation(LocationId);
     return(FASM_Enums.InfoMessages.Success);
 }
Example #3
0
 public void DeleteTask(int taskid)
 {
     int result1 = taskDal.DeleteTask(taskid);
     int result2 = locationDal.DeleteLocation(taskid);
 }