public async Task SaveSkill(int accountId, Skill skill) { var account = await Select.ById(accountId); account.Skills.Add(skill); await Context.SaveChangesAsync(); }
public async Task <IEnumerable <Skill> > GetSkills(int accountId) { var account = await Select.ById(accountId); return(account.Skills); }