public ActionResult Index() { PostServiceClient service = new PostServiceClient(); List<Post> posts = service.findAll().ToList(); return View("_post", posts); }
public ActionResult post() { PostServiceClient service = new PostServiceClient(); List<Post> posts = service.findAll().ToList(); //from post in service.findAll() //select new Core.Models.Post //{ // createdAt = post.createdAt, // item = new Models.Item(){ // category = // } // post.item, //}; return View("_post", posts); }