public bool EditAccount(AccountModel accountM, int[] Compentecey) { CompentenceManagement cm = new CompentenceManagement(); Mapping mapping = new Mapping(); Account accountE = new Account(); mapping.MapObjects(accountM, accountE); IList <Competence> CompetenceyAccount = new List <Competence>(); if (accountM.Password != null) { Encryption encryption = new Encryption(); accountE.Password = encryption.base64Encode(accountM.Password); } foreach (var item in Compentecey) { var itemC = cm.getOneEntity(item); CompetenceyAccount.Add(itemC); } accountE.Competences = CompetenceyAccount; accountRepository.Update(accountE); return(true); }
public ProjectController() { this.pm = new ProjectManagement(); this.cm = new CompentenceManagement(); this.categoryM = new CategoryManagement(); this.tk = new TaskManagement(); this.am = new AccountManagement(); }
public AccountController() { this.am = new AccountManagement(); this.cm = new CompentenceManagement(); this.pm = new ProjectManagement(); }
public AdminControlController() { this.am = new AccountManagement(); this.cm = new CompentenceManagement(); this.cam = new CategoryManagement(); }