Ejemplo n.º 1
0
        public ActionResult Index()
        {
            List <FileModel> ListFiles = new List <FileModel>();



            List <InzPost> ListPost           = new List <InzPost>();
            PostService    ObjPostSericeLayer = new PostService();

            ListPost = ObjPostSericeLayer.GetPostDetails(USerConfig.GetUserID());


            foreach (var Post in ListPost)
            {
                FileModel fileModel = new FileModel
                {
                    FileId = Post.PostId,
                    Name   = Post.Title,
                    Path   = Post.path
                };
                ListFiles.Add(fileModel);
            }


            ViewBag.Users = User_Controller.getAllUsers();

            return(View(ListFiles));
        }