コード例 #1
0
        public virtual async Task <DepartmentDto> CreateAsync(DepartmentCreateDto input)
        {
            var department = ObjectMapper.Map <DepartmentCreateDto, Department>(input);

            department = await DepartmentRepository.InsertAsync(department);

            return(ObjectMapper.Map <Department, DepartmentDto>(department));
        }
コード例 #2
0
 public async Task <DepartmentDto> CreateAsync(DepartmentCreateDto input)
 {
     return(await DepartmentAppService.CreateAsync(input));
 }