Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public ProjectController()
 {
     this.pm        = new ProjectManagement();
     this.cm        = new CompentenceManagement();
     this.categoryM = new CategoryManagement();
     this.tk        = new TaskManagement();
     this.am        = new AccountManagement();
 }
Esempio n. 3
0
 public AccountController()
 {
     this.am = new AccountManagement();
     this.cm = new CompentenceManagement();
     this.pm = new ProjectManagement();
 }
Esempio n. 4
0
 public AdminControlController()
 {
     this.am  = new AccountManagement();
     this.cm  = new CompentenceManagement();
     this.cam = new CategoryManagement();
 }