示例#1
0
        public async Task <DepartmentInfo> GetDepartmentInfoAsync(Guid departmentId)
        {
            var departmentDto = await _departmentServices.GetAsync(departmentId);

            if (departmentDto == null)
            {
                return(new DepartmentInfo());
            }
            return(_mapper.Map <DepartmentInfo>(departmentDto));
        }