public async Task <HttpResponseMessage> DeleteStudy ( [ModelBinder(typeof(RsDeleteRequestModelBinder))] WebDeleteRequest request ) { return(await StorageService.Delete(request)); }
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))); } }
public virtual Task <HttpResponseMessage> Delete(WebDeleteRequest request) { _storageService.Delete(request.Dataset, request.DeleteLevel); return(Task.FromResult(new HttpResponseMessage(HttpStatusCode.OK))); }