예제 #1
0
        public async Task <EmployeeDetails> Find(FindEmployee query)
        {
            var e = await db.Employees
                    .Include(emp => emp.Dependents)
                    .FirstOrDefaultAsync(emp => emp.Id == query.Id);

            return(e == null ? null : BLL.Conversion.toDetails(e));
        }
예제 #2
0