Esempio n. 1
0
        public ActionResult Index(IList <string> selector = null, int page = 1)
        {
            var userList = SphereMapper.Map(sphereService.RateProgrammers(selector)).ToList();

            ViewBag.Spheres   = (userList.First().Spheres.Select(s => s.Name)).ToArray();
            ViewBag.AllSkills = (sphereService.GetAll().Select(s => s.Name)).ToArray();
            if (Request.IsAjaxRequest())
            {
                return(PartialView("_Users"));
            }
            else
            {
                return(View());
            }
        }
Esempio n. 2
0
        public ActionResult UserListPdf(IList <string> spheres)
        {
            ViewBag.List = SphereMapper.Map(sphereService.RateProgrammers(spheres)).Take(20).ToList();

            return(View());
        }