Ejemplo n.º 1
0
        public IActionResult List()
        {
            var repo  = new JobOffersRepository();
            var items = repo.GetAll();

            var vms = new List <JobOffersListVM>();

            foreach (var item in items)
            {
                vms.Add(new JobOffersListVM()
                {
                    ID          = item.ID,
                    Title       = item.Title,
                    Description = item.Description,
                    CreatorName = $"{AuthService.LoggedUser.FirstName} {AuthService.LoggedUser.LastName}"
                });
            }

            return(View(vms));
        }
Ejemplo n.º 2
0
        public ActionResult AllVacancies()
        {
            IEnumerable <JobOffer> AllOffers = _jobOfferRepo.GetAll();

            return(View(AllOffers));
        }