public ActionResult ListPost()
        {
            StudentsRoutineModel model = new StudentsRoutineModel();

            model.posts = postApplication.ListAllPosts();
            return(View(model));
        }
Example #2
0
        public ActionResult StudentsRoutine(string filter)
        {
            StudentsRoutineModel model = new StudentsRoutineModel();

            if (!string.IsNullOrEmpty(filter))
            {
                model.posts = postApplication.FindPostsByCmeiName(filter);
            }
            else
            {
                model.posts = postApplication.ListAllPosts();
            }

            return(View(model));
        }