public ActionResult All() { DeveloperProfileListViewModel model = new DeveloperProfileListViewModel(); model.DevelopersProfiles = this.developers.GetAll() .To<DeveloperProfileViewModel>() .ToList(); return this.View(model); }
public ActionResult CandidatesForJobOffer(int id) { DeveloperProfileListViewModel innerModel = new DeveloperProfileListViewModel(); innerModel.DevelopersProfiles = this.developers.GetCandidatesForJobOffer(id) .To<DeveloperProfileViewModel>() .ToList(); CandidatesForJobOfferViewModel model = new CandidatesForJobOfferViewModel(); model.ListOfDeveloperProfiles = innerModel; model.JobOffer = this.Mapper.Map<JobOfferViewModel>(this.jobOffers.GetById(id)); return this.View(model); }