void IAllocationsCommand.Deallocate(Guid allocationId) { var allocation = _repository.GetAllocation(allocationId); if (allocation != null) { allocation.DeallocatedTime = DateTime.Now; _repository.UpdateAllocation(allocation); } }
Allocation IAllocationsQuery.GetAllocation(Guid id) { return(_repository.GetAllocation(id)); }