public async Task <IActionResult> Unassign([FromBody] CarColorAssignmentViewModel unassignViewModel) { await _commandFunctionality.UnassignAsync(Mapper.Map <CarColorAssignmentCommand>(unassignViewModel)); return(StatusCode(StatusCodes.Status204NoContent)); }
public async Task <IActionResult> Assign([FromBody] CarColorAssignmentViewModel assignViewModel) { await _commandFunctionality.AssignAsync(Mapper.Map <CarColorAssignmentCommand>(assignViewModel)); return(StatusCode(StatusCodes.Status201Created)); }