Esempio n. 1
0
        public void modifyCustomer(KundeDto kundeDto)
        {
            WriteActualMethod();
            Kunde        kunde        = DtoConverter.ConvertToEntity(kundeDto);
            KundeManager kundeManager = new KundeManager();

            try {
                kundeManager.modifyCustomer(kunde);
            }
            catch (OptimisticConcurrencyException <Kunde> e)
            {
                OptimisticConcurrency <KundeDto> fault = new OptimisticConcurrency <KundeDto>();
                fault.Result      = false;
                fault.Message     = e.Message;
                fault.Description = "Occurrency Exception!";

                throw new FaultException <OptimisticConcurrency <KundeDto> >(fault);
            }
        }