コード例 #1
0
        public async Task SaveSkill(int accountId, Skill skill)
        {
            var account = await Select.ById(accountId);

            account.Skills.Add(skill);
            await Context.SaveChangesAsync();
        }
コード例 #2
0
        public async Task <IEnumerable <Skill> > GetSkills(int accountId)
        {
            var account = await Select.ById(accountId);

            return(account.Skills);
        }