public virtual async Task <OrganizationUnitDto> UpdateAsync(Guid id, OrganizationUnitUpdateDto input) { var origanizationUnit = await OrganizationUnitRepository.GetAsync(id); origanizationUnit.DisplayName = input.DisplayName; input.MapExtraPropertiesTo(origanizationUnit); await OrganizationUnitManager.UpdateAsync(origanizationUnit); await CurrentUnitOfWork.SaveChangesAsync(); return(ObjectMapper.Map <OrganizationUnit, OrganizationUnitDto>(origanizationUnit)); }
public virtual async Task <OrganizationUnitDto> UpdateAsync(Guid id, OrganizationUnitUpdateDto input) { return(await OrganizationUnitAppService.UpdateAsync(id, input)); }