public ActionResult <AllocationDto> StartAllocation([FromBody] AllocationDto allocationDto) { var newAllocation = _allocationMapper.DtoToDomain(allocationDto); newAllocation = _allocationService.StartAllocation(newAllocation, allocationDto.MemberLicensePlate); return(Created($"api/Allocations/{newAllocation.Id}", newAllocation.Id)); }
public ActionResult <AllocationDto> StopAllocation([FromBody] AllocationDto allocationDto) { _allocationService.StopAllocation(allocationDto.MemberPeronId, allocationDto.Id); return(Ok()); }