Beispiel #1
0
 public ActionResult Album()
 {
     string id = User.Identity.Name;
     PhotoServiceClient psc = new PhotoServiceClient();
     ViewBag.listUserPhoto = psc.finduser(id);
     return View();
 }
Beispiel #2
0
 public ActionResult UsersAlbum(string name)
 {
     if (name.Equals(User.Identity.Name))
         return RedirectToAction("Album");
     PhotoServiceClient psc = new PhotoServiceClient();
     ViewBag.UserName = name;
     ViewBag.listUserPhoto = psc.finduser(name);
     return View();
 }