Esempio n. 1
0
        public ActionResult PostDetail(Guid Id)
        {
            PS.PostServiceClient proxy = new PS.PostServiceClient();
            PostDTO p = proxy.GetEntityById(Id);

            return(View(p));
        }
Esempio n. 2
0
        //
        // GET: /Home/

        public ActionResult Index()
        {
            PS.PostServiceClient proxy = new PS.PostServiceClient();
            List <PostDTO>       pList = proxy.GetAll();

            return(View(pList));
        }