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