Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 public Task <Secret> GetAsync(ISecretIdentity secret)
 {
     return(this.SecretDataAccess.GetAsync(secret));
 }
Esempio n. 3
0
        public async Task <Secret> GetAsync(ISecretIdentity employee)
        {
            var result = await this.Get(employee);

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