예제 #1
0
        public async Task <EmployeeInfo> GetAEmployeeAsync(string email)
        {
            var aEmployee = await employeeInfoRepository.GetAAsync(e => e.Email == email);

            if (aEmployee == null)
            {
                throw new ApiExceptions("employee not found");
            }
            return(aEmployee);
        }