コード例 #1
0
ファイル: AccountManagement.cs プロジェクト: Crow0197/Team-Up
        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);
        }
コード例 #2
0
 public ProjectController()
 {
     this.pm        = new ProjectManagement();
     this.cm        = new CompentenceManagement();
     this.categoryM = new CategoryManagement();
     this.tk        = new TaskManagement();
     this.am        = new AccountManagement();
 }
コード例 #3
0
ファイル: AccountController.cs プロジェクト: Crow0197/Team-Up
 public AccountController()
 {
     this.am = new AccountManagement();
     this.cm = new CompentenceManagement();
     this.pm = new ProjectManagement();
 }
コード例 #4
0
 public AdminControlController()
 {
     this.am  = new AccountManagement();
     this.cm  = new CompentenceManagement();
     this.cam = new CategoryManagement();
 }