public ActionResult <RequestResponse> DeleteDocuments(int Id) { var document = _documentsRepository.FindDocumentById(Id); var result = _documentsRepository.DeleteDocument(document); if (result > 0) { return(new RequestResponse { Status = "Success", Remarks = "Employee Document has been deleted successfully" }); } return(new RequestResponse { Status = "Failure", Remarks = "Delete action failed" }); }
public IActionResult Delete(int id) { db.DeleteDocument(id); db.Save(); return(Ok()); }
public AttachmentsSaveStatus DeleteDocument(Guid DocumentGuid, string CurentUserName) { return(DocumentsRepository.DeleteDocument(DocumentGuid, CurentUserName)); }