Commit 4682b717 authored by Krishna Reddy Tamatam's avatar Krishna Reddy Tamatam

Added one more parm for patient documents delete

parent dbf15746
...@@ -238,14 +238,14 @@ namespace FTP_Services.Services.Controllers ...@@ -238,14 +238,14 @@ namespace FTP_Services.Services.Controllers
// } // }
[HttpPost("DeletePatientDocument")] [HttpPost("DeletePatientDocument")]
public string DeletePatientDocument(int DocumentID) public string DeletePatientDocument(int DocumentID,int UserID)
{ {
log.Debug("DeletePatientDocument ==> "); log.Debug("DeletePatientDocument ==> ");
string DeletePT = ""; string DeletePT = "";
try try
{ {
FTPDataAdapter adapter = new FTPDataAdapter(_appSettings); FTPDataAdapter adapter = new FTPDataAdapter(_appSettings);
DeletePT = adapter.DeletePatientDocumentData(DocumentID); DeletePT = adapter.DeletePatientDocumentData(DocumentID,UserID);
} }
catch (Exception ex) catch (Exception ex)
{ {
......
...@@ -317,7 +317,7 @@ namespace FTP_Services.Services ...@@ -317,7 +317,7 @@ namespace FTP_Services.Services
// return _Delete; // return _Delete;
// } // }
public string DeletePatientDocumentData(int SndPatDocRecID) public string DeletePatientDocumentData(int SndPatDocRecID,int SndUserID)
{ {
string result = string.Empty; string result = string.Empty;
try try
...@@ -326,7 +326,7 @@ namespace FTP_Services.Services ...@@ -326,7 +326,7 @@ namespace FTP_Services.Services
{ {
string SQLStr = string SQLStr =
"SELECT * FROM \"SPScanTool_DeletePatientDocument\"(" "SELECT * FROM \"SPScanTool_DeletePatientDocument\"("
+ SndPatDocRecID + SndPatDocRecID +','+ SndUserID
+ ");"; + ");";
result = _repository.Single<string>(SQLStr); result = _repository.Single<string>(SQLStr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment