VirtoCommerce.Web.Models.Services.CustomerService.GetContactAsync C# (CSharp) Method

GetContactAsync() private method

private GetContactAsync ( string email ) : Task
email string
return Task
        private async Task<Contact> GetContactAsync(string email)
        {
            Contact contact = null;

            var user = await this._securityClient.FindUserByNameAsync(email);

            if (user != null)
            {
                contact = await this._customerClient.GetContactByIdAsync(user.Id);
            }

            return contact;
        }
        #endregion