Ejemplo n.º 1
0
        public virtual Task <HttpResponseMessage> Delete(WebDeleteRequest request)
        {
            try
            {
                _storageService.Delete(request.Dataset, request.DeleteLevel);

                return(Task.FromResult(new HttpResponseMessage(HttpStatusCode.OK)));
            }
            catch (Exception ex)
            {
                return(Task.FromResult(new HttpResponseMessage(HttpStatusCode.InternalServerError)));
            }
        }
Ejemplo n.º 2
0
        public virtual Task <HttpResponseMessage> Delete(WebDeleteRequest request)
        {
            _storageService.Delete(request.Dataset, request.DeleteLevel);

            return(Task.FromResult(new HttpResponseMessage(HttpStatusCode.OK)));
        }