Beispiel #1
0
        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);
        }
Beispiel #2
0
 public Task UpdateAsync(Guid id, UpdateOrganizationDto input)
 {
     return(_orgAppSvc.UpdateAsync(id, input));
 }