public ActionResult ListProject(int major = -1, string title = "", string listSkill = "", bool space = false, int page = 1) { if (!User.Identity.IsAuthenticated) { return(RedirectToAction("Index", "Account")); } var accID = int.Parse(User.Identity.Name); var acc = new AccountDao().FindAccountById(accID); var proDao = new ProjectDao(); var model = new ModelProject(); var arr = listSkill.Split('-'); var list = new List <int>(); if (listSkill != "") { foreach (var item in arr) { list.Add(int.Parse(item)); } } ViewBag.ListMajor = new JobMajorDao().ListJobMain(); ViewBag.ListSkill = new JobMajorDao().ListJobSub(); ViewBag.UserID = acc.UserId; model.ListFull = proDao.FindBySearch(major, title, list, space); model.ListUserCreate = proDao.ListByUserCreate(acc.UserId); model.ListUserJoin = proDao.ListByUserJoin(acc.UserId); return(View(model)); }