public IHttpActionResult UpdateItem(MyDemoDTO item)
        {
            if (ModelState.IsValid)
            {
                return Ok(item);
            }

            return BadRequest(ModelState);
        }
        public MyDemoDTO MapToDto(MyEntity entity)
        {
            if (entity == null)
                throw new ArgumentNullException(nameof(entity));

            MyDemoDTO dto = new MyDemoDTO();
            dto.Id = entity.Id;
            dto.LastName = entity.LastName;
            dto.Name = entity.Name;
            return dto;
        }
        public MyEntity MapToEntity(MyEntity entity, MyDemoDTO dto)
        {
            if (entity == null)
                throw new ArgumentNullException(nameof(entity));

            if (dto == null)
                throw new ArgumentNullException(nameof(dto));

            entity.Id = dto.Id;
            entity.LastName = dto.LastName;
            entity.Name = dto.Name;
            return entity;
        }
        public void DeleteItem(MyDemoDTO dto)
        {
            if (dto == null)
                throw new ArgumentNullException(nameof(dto));

            Logger.Info("Deleting MyDemoDTO..Id={0}", dto.Id);

            MyEntity entity = _domainservice.FindEntity(dto.Id);
            if (entity == null)
            {
                throw new ArgumentException("Entity with Id " + dto.Id + " not found!");
            }

            _domainservice.Delete(entity);
        }
        public void UpdateItem_ItemNotFound_Test()
        {
            // Arrange

            MyDataRepositoryStub repository = new MyDataRepositoryStub();
            DataDomainService dds = new DataDomainService(repository);
            IMyAppService appservice = new MyAppService(dds);

            MyDemoDTO mydto = new MyDemoDTO() { Id = 123323 };

            // Act

            appservice.UpdateItem(mydto);

            // Assert
        }