// GET: Mandat public ActionResult Index() { var listMandat = ms.GetAll(); foreach (Domain.Entity.Mandat m in listMandat) { m.project = clientService.GetAll().Where(e => e.idProject == m.idProject).First(); m.ressource = rs.GetAll().Where(e => e.Id == m.IdRessource).First(); } return(View(listMandat)); }
// GET: Ressources public ActionResult Index() { var ress = serviceRessource.GetAll(); List <Ressource> mvp = new List <Ressource>(); foreach (var item in ress) { mvp.Add( new Ressource { LastName = item.LastName, FirstName = item.FirstName, ContractType = item.ContractType, Seniority = item.Seniority, PictureURL = item.PictureURL, SkillSet = item.SkillSet, Notes = item.Notes, Resume = item.Resume, state = item.state, OrganizationalId = item.OrganizationalId }); } return(View(mvp)); }
// GET: Competence/Create public ActionResult Create() { IdentityServer.Models.Competence competencetModel = new IdentityServer.Models.Competence(); /// var x = rs.GetAll(). Select(w => new SelectListItem { Text = w.Nom, Value = w.idRessource.ToString() }); competencetModel.Ressourcess = x; return(View(competencetModel)); }
// GET: Vacance/Create public ActionResult Create() { Vacance vacanceModel = new Vacance(); /// List <string> Vacances = new List <string> { "DayOff", " OfficialVacation" }; ViewData["vacance"] = new SelectList(Vacances); var x = rs.GetAll(). Select(w => new SelectListItem { Text = w.Nom, Value = w.idRessource.ToString() }); vacanceModel.Ressourcess = x; return(View(vacanceModel)); }