示例#1
0
        void IAllocationsCommand.Deallocate(Guid allocationId)
        {
            var allocation = _repository.GetAllocation(allocationId);

            if (allocation != null)
            {
                allocation.DeallocatedTime = DateTime.Now;
                _repository.UpdateAllocation(allocation);
            }
        }
示例#2
0
 Allocation IAllocationsQuery.GetAllocation(Guid id)
 {
     return(_repository.GetAllocation(id));
 }