public ActionResult Delete(string id) { var response = Client.Delete(id).Result; if (response is OkResult) { ResourceIdsHolder.Remove <TResource>(id); } return(response); }
public ActionResult <IEnumerable <string> > Delete(IEnumerable <string> ids) { var result = Client.BatchDelete(ids.ToArray()).Result; if (result.IsSuccess) { foreach (var id in result.Value) { ResourceIdsHolder.Remove <TResource>(id); } } return(result); }