0
    DomainServiceAccountManager d = new DomainServiceAccountManager();
    Web.Buy b=new Web.Buy();
    b.ID_member = IDMemberToBuy;
    b.Money = MoneyBuy;
    b.Tarikh = tarikh;
    b.Hesab = false;
    d.Buys.Add(b);
    d.SubmitChanges(op => { if (!op.HasError) MessageBox.Show(b.ID.ToString()); });

But I'm getting this error:

No overload for method 'SubmitChanges' takes 1 arguments

C:\Users\farzad\Documents\Visual Studio 2010\Projects\AccountManager\AccountManager\Views\Login\CWBuy.xaml.cs 214 13 AccountManager

Community
  • 1
  • 1

1 Answers1

1

There are two SubmitChanges methods.

The first takes no arguments, while the second takes two.

You need to pass a second argument - Object (which represents the user state) to your call.

ChrisF
  • 134,786
  • 31
  • 255
  • 325