public void DeleteAccidents(int AccidentID)
 {
     admin = new Admin();
     admin.DeleteAccidents(AccidentID);
 }
 public void RegisterDevice(int userID)
 {
     admin = new Admin();
     admin.RegisterDevice(userID);
 }
 public void UpdateAccident(int AccidentID, int newAmount, DateTime newDate, int NewDeviceID)
 {
     admin = new Admin();
     admin.UpdateAccident(AccidentID, newDate, newAmount, NewDeviceID);
 }
 public List<AccidentDTO> ReadAccidents(int UserID)
 {
     Admin adm = new Admin();
     List<Accident> listOfAcc = adm.GetStatisticsFromDB(UserID);
     return GetAccidents(listOfAcc);
 }