Example #1
0
        private async Task UpdateAddress(OrganisationViewModel item)
        {
            var newAddress = item.Address;
            var oldAddress = await _addressBusinessService.GetAsync(item.AddressId ?? 0);

            var createdDate = oldAddress.CreatedOn;

            newAddress.CreatedOn = createdDate;

            SetAuditInformation <Address>(newAddress, isUpdate: true);
            await _addressBusinessService.UpdateAsync(newAddress);
        }