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

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