예제 #1
0
 public override void Delete()
 {
     using (var service = new PersonsServiceClient())
     {
         try
         {
             service.Delete(this.ViewModel.Person.Id);
         }
         catch (Exception e)
         {
         }
     }
 }
예제 #2
0
 public override void Load()
 {
     using (var service = new PersonsServiceClient())
     {
         try
         {
             this.ViewModel.Person = service.GetPersonById(this.CurrentId);
         }
         catch (Exception e)
         {
         }
     }
 }
예제 #3
0
 public override void Add()
 {
     using (var service = new PersonsServiceClient())
     {
         try
         {
             this.ViewModel.CurrentId = service.Save(this.ViewModel.Person);
             this.CurrentId           = this.ViewModel.CurrentId;
         }
         catch (Exception e)
         {
         }
     }
 }