public ActionResult Album() { string id = User.Identity.Name; PhotoServiceClient psc = new PhotoServiceClient(); ViewBag.listUserPhoto = psc.finduser(id); return View(); }
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(); }