Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

After editing EmailAccount it disappears #3

Open
nurzhanme opened this issue Dec 16, 2019 · 0 comments
Open

After editing EmailAccount it disappears #3

nurzhanme opened this issue Dec 16, 2019 · 0 comments

Comments

@nurzhanme
Copy link

When I use Add method everything is ok. EmailAccount is created

But when I use Edit it disappears

Here is the code

var a = new PddApi("myPddToken").Domain("mydomain.com").Mail.Add("ex123", "Exam123456").GetAwaiter().GetResult();

var account = new EmailAccount
{
	Uid = a.Uid,
	BirthDate = new DateTime(1990, 1, 1),
	Enabled = true,
	Fname = "Ivan",
	Iname = "Ivanov",
	Login = "ex123",
	Password = "Exam@123",
	Sex = Sex.Male,
	Ready = true,
	Hintq = "quesion",
	Hinta = "answer"
};

var b = new PddApi("myPddToken").Domain("mydomain.com").Mail.Edit(account).GetAwaiter().GetResult();

While debugging I can see that b.Succes = True
Where am I doing wrong?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant