Example #1
0
 public bool ReturnParcel(int id)
 {
     try
     {
         _parcelService.ReturnParcel(_parcelService.GetById(id));
     }
     catch (ParcelNotFoundInDatabaseException e)
     {
         Console.WriteLine(e.ToString());
         return(false);
     }
     catch (NothingAddedToDatabaseException e)
     {
         Console.WriteLine(e.ToString());
         return(false);
     }
     return(true);
 }