public async Task <UserAccountInfo> GetUserAccountAsync(string userEmail) { UserAccountInfoEntity userAccountInfo = await UoW.UserAccounts.GetAsync(userEmail) ?? throw new WrongIdException("UserAccount"); return(mapper.Map <UserAccountInfo>(userAccountInfo)); }
public UserAccountInfo GetUserAccount(string userEmail) { UserAccountInfoEntity userAccountInfo = UoW.UserAccounts.Get(userEmail) ?? throw new WrongIdException("UserAccount"); return(mapper.Map <UserAccountInfo>(userAccountInfo)); }