public void AddCompany(Company company, string path) { AddToXML check = new AddToXML(); if (check.ReturnAllUsers(path) == false) { AddToXML.CreateCompany(company, path); } else { AddToXML.AddCompany(company, path); } }
public void AddUser(User user, string path) { AddToXML check = new AddToXML(); if (check.ReturnAllUsers(path) == false) { AddToXML.CreateUser(user, path); } else { AddToXML.AddUser(user, path); } }