public ClientAccount AddClientAccount(ClientAccount clientAccount) { string roleName = "Client"; SystemRole role = _systemRolesRepository.GetSystemRoleByName(roleName); clientAccount.Role = role; clientAccount.AccountType = "Client"; clientAccount.Password = BCrypt.Net.BCrypt.HashPassword(clientAccount.Password); ClientAccount c = _accountsRepository.AddClientAccount(clientAccount); return(c); }