public HttpResponseMessage DeleteItems(DeleteItemsRequest request) { var notDeletedItems = DigitalAssetsController.DeleteItems(request.Items); return Request.CreateResponse(HttpStatusCode.OK, notDeletedItems); }
public HttpResponseMessage DeleteItems(DeleteItemsRequest request) { var notDeletedItems = DigitalAssetsController.DeleteItems(from i in request.Items select new ItemBaseViewModel { ItemID = i.ItemId, IsFolder = i.IsFolder }); return Request.CreateResponse(HttpStatusCode.OK, notDeletedItems); }