public async Task <HttpResponseMessage> DeleteStudy
 (
     [ModelBinder(typeof(RsDeleteRequestModelBinder))]
     WebDeleteRequest request
 )
 {
     return(await StorageService.Delete(request));
 }
Example #2
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)));
            }
        }
Example #3
0
        public virtual Task <HttpResponseMessage> Delete(WebDeleteRequest request)
        {
            _storageService.Delete(request.Dataset, request.DeleteLevel);

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