public IActionResult Delete(int id)
 {
     try
     {
         return(Ok(DocumentManipulation.DeleteDocument(id)));
     }
     catch (Exception ex)
     {
         Logger.LogError(ex.Message);
         throw new NSIException(ex.Message, DC.Exceptions.Enums.Level.Error, DC.Exceptions.Enums.ErrorType.InvalidParameter);
     }
 }
Exemple #2
0
        public void DeleteDocument_Success()
        {
            bool isDeleted = _documentManipulation.DeleteDocument(1);

            Assert.AreEqual(true, isDeleted);
        }