Add API method to CardsController for clearing all unassigned identifiers from system.

#69
This commit is contained in:
Chris.Watts90@outlook.com 2018-03-07 09:02:19 +00:00
parent b266fbf8e0
commit 153876d6a1

View File

@ -27,5 +27,15 @@ namespace WindowsDataCenter
_logger.Trace("Call to GetUnassignedCards, returning {0} items", unassignedCards.data.Count);
return Ok(unassignedCards);
}
[HttpDelete]
[Route("unassigned")]
[CacheControl(MaxAge = 0)]
public IHttpActionResult ClearUnassignedCards()
{
_repo.ClearUnassignedIdentifiers();
_logger.Trace("Call to ClearUnassignedCards, removed all identifiers.");
return Ok();
}
}
}