Exemple #1
0
        public async Task <OrganizationUnitDto> UpdateOrganizationUnitAsync(Guid id, UpdateOrganizationUnitInput input)
        {
            var organizationUnit = await _organizationUnitRepository.GetAsync(id);

            organizationUnit.Name = input.Name;

            await _organizationUnitManager.UpdateAsync(organizationUnit);

            return(await CreateOrganizationUnitDto(organizationUnit));
        }
Exemple #2
0
 public async Task <OrganizationUnitDto> UpdateOrganizationUnitAsync(Guid id, UpdateOrganizationUnitInput input)
 {
     return(await _organizationUnitAppService.UpdateOrganizationUnitAsync(id, input));
 }