public async Task UpdateAsync(Guid id, UpdateOrganizationDto input) { var org = await _orgRepository.GetAsync(id); if (org.Name != input.Name) { await _orgManager.ChangeNameAsync(org, input.Name); } org.About = input.About; org.WebSite = input.WebSite; org.DateFormat = input.DateFormat; org.TaxID = input.TaxID; org.CompanyID = input.CompanyID; await _orgRepository.UpdateAsync(org); }
public Task UpdateAsync(Guid id, UpdateOrganizationDto input) { return(_orgAppSvc.UpdateAsync(id, input)); }