public static void DeleteAll() { using (var uow = new DAL.UnitOfWork()) { uow.ActiveImagingTaskRepository.DeleteRange(); uow.Save(); } }