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

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