public static void CleanUp() { if (_deliveryService != null) { _deliveryService.Dispose(); } }
public static void CleanUp() { if (_storageBinService != null) { _storageBinService.Dispose(); } if (_messageService != null) { _messageService.Dispose(); } }
public ActionResult DeleteDelivery(int id) { deliveryService.Dispose(id); return(RedirectToAction("DeliveryDetail")); }