public ActionResult PostDetail(Guid Id) { PS.PostServiceClient proxy = new PS.PostServiceClient(); PostDTO p = proxy.GetEntityById(Id); return(View(p)); }
// // GET: /Home/ public ActionResult Index() { PS.PostServiceClient proxy = new PS.PostServiceClient(); List <PostDTO> pList = proxy.GetAll(); return(View(pList)); }