Beispiel #1
0
 public IActionResult DescriptionPhoto()
 {
     ServiceReference1.Service1 ph =
         new ServiceReference1.Service1();
     ServiceReference1.DetaliiPhoto photo = ph.GetDescription();
     return(View(DetaliiPhoto.descriere));
 }
Beispiel #2
0
 public IActionResult PeoplePhoto()
 {
     ServiceReference1.Service1 ph =
         new ServiceReference1.Service1();
     ServiceReference1.DetaliiPhoto photo = ph.GetPeople();
     return(View(DetaliiPhoto.people));
 }
Beispiel #3
0
 public IActionResult PathPhoto()
 {
     ServiceReference1.Service1 ph =
         new ServiceReference1.Service1();
     ServiceReference1.MyPhotos myPhotos = ph.GetPath();
     return(View(myPhotos.PathPhoto));
 }
Beispiel #4
0
 public IActionResult IndexPhoto()
 {
     ServiceReference1.Service1 ph =
         new ServiceReference1.Service1();
     ServiceReference1.MyPhotos myPhotos = ph.FindPhotoById();
     return(View(myPhotos.Photo));
 }
Beispiel #5
0
 public IActionResult Index()
 {
     ServiceReference1.Service1 ph =
         new ServiceReference1.Service1();
     ServiceReference1.MyPhotos myPhotos = ph.GetAllPhotos();
     return(View(myPhotos));
 }
Beispiel #6
0
 public IActionResult Index()
 {
     ServiceReference1.Service1 ph =
         new ServiceReference1.Service1();
     ServiceReference1.MyPhotos myPhotos = ph.FindUserById(1);
     return(View(User));
 }
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     this.AddToDebug("In Button_Click");
     ThreadPool.QueueUserWorkItem(delegate
     {
         ServiceReference1.Service1Client client = new ServiceReference1.Service1Client();
         ServiceReference1.Service1 asInterface  = client;
         this.AddToDebug("Calling server \"synchronously\"...");
         int result = asInterface.EndAdd(asInterface.BeginAdd(45, 67, null, null));
         this.AddToDebug("Result: {0}", result);
         client.CloseAsync();
     });
 }