public async Task <bool> UpdateTeacherAccountAsync(string key, ITeacherAccount account) { return(await _accountRepository.UpdateAsync(key, account.Map <ITeacherAccount, AccountDto>())); }
public async Task <bool> AddTeacherAccountDbAsync(ITeacherAccount account) { return(await _accountRepository.CreateAsync(account.Map <ITeacherAccount, AccountDto>())); }