public HttpResponseMessage Delete(int id) { _fileUploadService.Delete(id); SuccessResponse resp = new SuccessResponse(); return(Request.CreateResponse(System.Net.HttpStatusCode.OK, resp)); }
public HttpResponseMessage DeleteFromS3(int id) { string fileName = _uploadService.Delete(id); DeleteFromS3(fileName); SuccessResponse response = new SuccessResponse(); return(Request.CreateResponse(HttpStatusCode.OK, new SuccessResponse())); }
public void Delete(string path, string fileName) { _fileUploadService.Delete(path, fileName); }
public void Handle(ImageDeletionRequest message) { _indexService.RemoveImage(message.Image.Id); message.Image.SetLocation(_fileService.RootPath.FullName); _fileService.Delete(message.Image.FileLocation); }