Esempio n. 1
0
        public ActionResult Delete(string id)
        {
            var response = Client.Delete(id).Result;

            if (response is OkResult)
            {
                ResourceIdsHolder.Remove <TResource>(id);
            }
            return(response);
        }
Esempio n. 2
0
        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);
        }