예제 #1
0
        public ActionResult BlogPasgo(int?city)
        {
            if (city == null)
            {
                return(RedirectToAction("Index", "Home"));
            }
            var blog = db.BaiVietSP(city, 1);
            List <BaiVietSP_Result> result = new List <BaiVietSP_Result>();

            foreach (var rs in blog.ToList())
            {
                result.Add(rs);
            }
            return(PartialView("BlogPasgo", result.ToArray()));
        }