private async Task <Entities.Secret> Get(ISecretIdentity employee)
        {
            if (employee == null)
            {
                throw new ArgumentNullException(nameof(employee));
            }

            return(await this.Context.Secrets.Include(x => x.Message)
                   .FirstOrDefaultAsync(x => x.Id == employee.Id));
        }
 public Task <Secret> GetAsync(ISecretIdentity secret)
 {
     return(this.SecretDataAccess.GetAsync(secret));
 }
        public async Task <Secret> GetAsync(ISecretIdentity employee)
        {
            var result = await this.Get(employee);

            return(this.Mapper.Map <Secret>(result));
        }