Esempio n. 1
0
        public void Delete(RemoveFromCollection request)
        {
            var task = _collectionManager.RemoveFromCollection(request.Id, request.Ids.Split(',').Select(i => new Guid(i)));

            Task.WaitAll(task);
        }
Esempio n. 2
0
        public void Delete(RemoveFromCollection request)
        {
            var task = _collectionManager.RemoveFromCollection(new Guid(request.Id), SplitValue(request.Ids, ','));

            Task.WaitAll(task);
        }
 public void Delete(RemoveFromCollection request)
 {
     _collectionManager.RemoveFromCollection(new Guid(request.Id), SplitValue(request.Ids, ','));
 }
Esempio n. 4
0
 public ActionResult RemoveFromCollection([FromRoute] Guid collectionId, [FromQuery, Required] string?itemIds)
 {
     _collectionManager.RemoveFromCollection(collectionId, RequestHelpers.Split(itemIds, ',', true));
     return(NoContent());
 }