Beispiel #1
0
 public string Get(int id)
 {
     try
     {
         return(QCallerDBDelete.DeleteCustomer(id).ToJsonString());
     }
     catch (Exception e)
     {
         return(new IntegerReturnValue()
         {
             Description = $"Failed to DeleteCustomer: {e.Message}",
             Result = -1
         }.ToJsonString());
     }
 }
Beispiel #2
0
 public string Get(int id)
 {
     try
     {
         var retVal = QCallerDBDelete.DeleteReservation(id);
         return(retVal.ToJsonString());
     }
     catch (Exception e)
     {
         return(new IntegerReturnValue()
         {
             Description = $"Failed to DeleteReservation: {e.Message}",
             Result = -1
         }.ToJsonString());
     }
 }