Add API method to CardsController for clearing all unassigned identifiers from system.
#69
This commit is contained in:
parent
b266fbf8e0
commit
153876d6a1
@ -27,5 +27,15 @@ namespace WindowsDataCenter
|
|||||||
_logger.Trace("Call to GetUnassignedCards, returning {0} items", unassignedCards.data.Count);
|
_logger.Trace("Call to GetUnassignedCards, returning {0} items", unassignedCards.data.Count);
|
||||||
return Ok(unassignedCards);
|
return Ok(unassignedCards);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HttpDelete]
|
||||||
|
[Route("unassigned")]
|
||||||
|
[CacheControl(MaxAge = 0)]
|
||||||
|
public IHttpActionResult ClearUnassignedCards()
|
||||||
|
{
|
||||||
|
_repo.ClearUnassignedIdentifiers();
|
||||||
|
_logger.Trace("Call to ClearUnassignedCards, removed all identifiers.");
|
||||||
|
return Ok();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user