コード例 #1
0
 public string DeleteCar(string id)
 {
     try
     {
         Car carResult = carMethods.GetCarById(Convert.ToInt16(id));
         carMethods.RemoveCar(carResult.Regnumber);
         return("Car is successfully deleted:)");
     }
     catch
     {
         return("Could not delete the car:(");
     }
 }
コード例 #2
0
 public bool RemoveCar(string regnum)
 {
     return(carMethods.RemoveCar(regnum));
 }
コード例 #3
0
 public void DeleteCar(string regnum)
 {
     carMethods.RemoveCar(regnum);
 }