コード例 #1
0
        public HttpResponseMessage Delete(int id)
        {
            _fileUploadService.Delete(id);
            SuccessResponse resp = new SuccessResponse();

            return(Request.CreateResponse(System.Net.HttpStatusCode.OK, resp));
        }
コード例 #2
0
        public HttpResponseMessage DeleteFromS3(int id)
        {
            string fileName = _uploadService.Delete(id);

            DeleteFromS3(fileName);
            SuccessResponse response = new SuccessResponse();

            return(Request.CreateResponse(HttpStatusCode.OK, new SuccessResponse()));
        }
コード例 #3
0
 public void Delete(string path, string fileName)
 {
     _fileUploadService.Delete(path, fileName);
 }
コード例 #4
0
 public void Handle(ImageDeletionRequest message)
 {
     _indexService.RemoveImage(message.Image.Id);
     message.Image.SetLocation(_fileService.RootPath.FullName);
     _fileService.Delete(message.Image.FileLocation);
 }