Beispiel #1
0
        public async Task <AccountProperty> Update(ChangedAccountProperty model)
        {
            var entity = await _store.Load(model.Id, null);

            if (entity == null)
            {
                throw new InvalidOperationException();
            }

            Mapper.Map(model, entity);
            await _store.Update(entity);

            return(Mapper.Map <AccountProperty>(entity));
        }