예제 #1
0
        /// <inheritdoc/>
        public async Task UpdateOrganizationUnit(OrganizationUnitDto input)
        {
            var ou = await _ouRepository.GetAsync(input.Id);

            input.MapTo(ou);
            await _organizationUnitManager.UpdateAsync(ou);
        }
예제 #2
0
 /// <inheritdoc/>
 public async Task CreatOrganizationUnit(OrganizationUnitDto input)
 {
     await _organizationUnitManager.CreateAsync(input.MapTo <OrganizationUnit>());
 }