public void ModifierCompetence(COMPETENCE competence) { COMPETENCE competenceModif = new COMPETENCE(); using (Context c = new Context()) { competenceModif = c.COMPETENCE.First(a => a.id == competence.id); competenceModif.id = competence.id; competenceModif.intitule = competence.intitule; competenceModif.id_TYPE_COMPETENCE = competence.id_TYPE_COMPETENCE; c.SaveChanges(); } }
public void AjouterCompetence(string intitule, int typeCompetence) { using (Context c = new Context()) { COMPETENCE competence = new COMPETENCE(); //Hash MotDepasseHash = new Hash(); competence.intitule = intitule; competence.id_TYPE_COMPETENCE = typeCompetence; c.SaveChanges(); } }
public ActionResult supprimer(int supprimer) { COMPETENCE listCOMPETENCE = new COMPETENCE(); try { using (var c = new Context()) { listCOMPETENCE = c.COMPETENCE.Where((a) => a.id == supprimer).First(); c.COMPETENCE.Remove(listCOMPETENCE); c.SaveChanges(); } } catch (Exception) { RedirectToAction("Index", "Competence"); } return(RedirectToAction("Index", "Competence"));; }
public bool HasCompetnce(COMPETENCE cOMPETENCE) { return(this._HasCompetence(cOMPETENCE)); }
private bool _HasCompetence(COMPETENCE competence) { return(this.Competnces[competence]); }
private bool _HasCompetence(COMPETENCE competence) { return this.Competnces[competence]; }
public bool HasCompetnce(COMPETENCE cOMPETENCE) { return this._HasCompetence(cOMPETENCE); }