static void Main(string[] args) { //ServiceXmlDocument service = new ServiceXmlDocument(@"\\dc\Студенты\ПКО\SMP-172.1\dana.xml"); //Operator oper = new Operator(); //oper.Name = "kcell"; //oper.Percent = 2; //oper.Logo = "фиолетовое что-то"; //Prefix pref = new Prefix(); //pref.pref = 777; //oper.Prefixes.Add(pref); //try //{ // service.CreateOperator(oper); // Console.WriteLine("оператор успешно добавлен"); //} //catch (Exception ex) //{ // Console.WriteLine(ex.Message); //} ServiceXmlDocument service = new ServiceXmlDocument(@"\\dc\Студенты\ПКО\SMP-172.1\ДК"); try { User user = new User(); user.Email = "*****@*****.**"; user.Login = "******"; user.Password = "******"; service.CreateUser(user); Console.WriteLine("пользователь успешно добавлен\n"); } catch (Exception ex) { Console.WriteLine(ex.Message); } }
static void Main(string[] args) { //ServiceXmlDoument service = new ServiceXmlDoument(@"\\dc\Студенты\ПКО\SMP-172.1\MK.xml"); //Operator oper = new Operator(); //oper.name = "Beeline5"; //oper.percent = 0.1; //oper.prefixes.Add(new Prefix() { Pref = 778 }); //oper.Logo = "bee"; //try //{ // service.CreateOperator(oper); // Console.WriteLine("Оператор успешно добавлен"); //} //catch (Exception ex) //{ // Console.WriteLine(ex.Message); //} ServiceXmlDocument service = new ServiceXmlDocument(@"\\dc\Студенты\ПКО\SMP-172.1\МК"); try { User user = new User(); user.email = "jhsgd@jshd/ru"; user.login = "******"; user.Password = "******"; service.CreateUser(user); Console.WriteLine("пользователь успешно добавлен"); } catch (Exception ex) { Console.WriteLine(ex.Message); } }