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

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