Example #1
0
        public ActionResult Index()
        {
            KorisnikOdabirZanimanja odabirZanimanja = new KorisnikOdabirZanimanja();

            odabirZanimanja.svaZanimanja      = HKODataService.fetchDistinctZanimanjaDictionary();
            odabirZanimanja.odabranaZanimanja = userService.getSelectedProffesionForCurrentUser();
            return(View("~/Views/HKOWebViews/Poslodavac/Index.cshtml", odabirZanimanja));
        }
        public KorisnikOdabirZanimanja(UserProfileInfo user)
        {
            HKOPodaciService podaciService = new HKOPodaciService();
            UserService      userService   = new UserService();

            this.svaZanimanja      = podaciService.fetchDistinctZanimanjaDictionary();
            this.odabranaZanimanja = userService.getSelectedProffesionsForUser(user);
        }
Example #3
0
        public override IEnumerable <DynamicNode> GetDynamicNodeCollection(ISiteMapNode node)
        {
            HKOPodaciService         HKOPodaciServis = new HKOPodaciService();
            Dictionary <int, string> mapaZanimanja   = HKOPodaciServis.fetchDistinctZanimanjaDictionary();

            foreach (var entry in mapaZanimanja)
            {
                DynamicNode dynamicNode = new DynamicNode();
                dynamicNode.Title     = entry.Value;
                dynamicNode.ParentKey = "BuduciStudent";
                dynamicNode.RouteValues.Add("zanimanjeId", entry.Key);
                yield return(dynamicNode);
            }
        }