Exemplo n.º 1
0
        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"
            });
        }
Exemplo n.º 2
0
 public IActionResult Delete(int id)
 {
     db.DeleteDocument(id);
     db.Save();
     return(Ok());
 }
Exemplo n.º 3
0
 public AttachmentsSaveStatus DeleteDocument(Guid DocumentGuid, string CurentUserName)
 {
     return(DocumentsRepository.DeleteDocument(DocumentGuid, CurentUserName));
 }