public HttpResponseMessage Put(int id, int attId, Attachement attachement) { bool isSuccessfulUpdate = _attachementRepository.Update(id, attId, attachement); if (!isSuccessfulUpdate) { return(Request.CreateResponse(HttpStatusCode.BadRequest)); } return(Request.CreateResponse(HttpStatusCode.OK)); }
public void UpdateAttachment(FileTemp document) { _tempFileRepository.Update(document); _work.commit(); }