Exemple #1
0
 public AttachmentsSaveStatus EditDocument(vw_Documents Document)
 {
     if (FoldersRepository.DocumentsOverFlowNumber(Document.FolderID))
     {
         return(AttachmentsSaveStatus.NumberOfDocumentOverFlow);
     }
     return(DocumentsRepository.EditDocument(Document));
 }
        public ActionResult <RequestResponse> PutDocuments(Documents document)
        {
            document.ModifiedOn = DateTime.Now;

            var result = _documentsRepository.EditDocument(document);

            if (result > 0)
            {
                return(new RequestResponse
                {
                    Status = "Success",
                    Remarks = "Employee Document has been updated successfully"
                });
            }

            return(new RequestResponse
            {
                Status = "Failure",
                Remarks = "Update action failed"
            });
        }