public ActionResult Dpd() { DPDAction dpd_action = new DPDAction( _eventtrackingRepository, _eventtrackingtypeRepository, _eventtrackingparameterRepository, _eventtrackingunitloadRepository, _stateparcelsRepository, _stateRepository, _stateparcelsunitedRepository, _stateunitedRepository, _statehistoryRepository, _eventsRepository ); DPDActionResult result = dpd_action.Go(); if (result.IsOk) { //_timelineService.RegisterActivity(Realm.BG, ActivityType.LocationDeleted, User.Id); Feedback.AddMessageSuccess(result.Message); return(RedirectToAction("Index", nameof(DashboardController).RemoveControllerSuffix())); } else { Feedback.AddMessageWarning(result.Message); return(RedirectToAction("Index", nameof(DashboardController).RemoveControllerSuffix())); } }
public ActionResult DeleteAllDpd() { //_eventtrackingRepository.DeleteAll(); //_eventtrackingtypeRepository.DeleteAll(); //_eventtrackingparameterRepository.DeleteAll(); //_eventtrackingunitloadRepository.DeleteAll(); //_stateparcelsRepository.DeleteAll(); //_stateRepository.DeleteAll(); //_stateparcelsunitedRepository.DeleteAll(); // _stateunitedRepository.DeleteAll(); Feedback.AddMessageWarning("ВСЕ ДАННЫЕ ПО СТАТУСАМ УДАЛЕНЫ !!!"); return(RedirectToAction("Index", nameof(DashboardController).RemoveControllerSuffix())); }