public IActionResult Index() { ViewBag.Categories = optionsService.GetCategories(); ViewBag.EmploymentType = optionsService.GetEmploymentTypes(); ViewBag.Locations = optionsService.GetLocations(); List <JobViewModel> jobs = jobeService.GetJobs().Select(x => new JobViewModel { Id = x.Id, CategoriId = x.CategoriId, EmploymentType = x.EmploymentType.Name, Image = x.Image, Location = x.Location.FullAddress, Title = x.Title, Bookmarked = x.Bukmarks.Any(x => x.User.UserName == User.Identity.Name) }).ToList(); return(View(jobs)); }