예제 #1
0
        /// <summary>
        /// 获取详情
        /// </summary>
        /// <param name="entityQueryRequest"></param>
        /// <returns></returns>
        public async Task <EmployeeQueryDto> GetForModifyAsync(EntityQueryRequest entityQueryRequest)
        {
            var entity = await _employeeRespository.FirstOrDefaultAsync(e => e.Id == entityQueryRequest.Id);

            if (entity != null)
            {
                return(entity.MapEntity <Employee, EmployeeQueryDto>());
            }
            return(null);
        }