first commit
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
||||
using Landmark.OLA.Models.Loan;
|
||||
using Landmark.OLA.Models.OnlineBanking;
|
||||
|
||||
namespace Landmark.OLA.Application.Common.Security
|
||||
{
|
||||
public static class MemberIdService
|
||||
{
|
||||
public static LoanContainer AppendMemberInfo(LoanContainer loanContainer, OnlineBankingToken token)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(token?.MemberID) )
|
||||
{
|
||||
loanContainer.MemberId = token.MemberID;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(token?.IndividualID) )
|
||||
{
|
||||
loanContainer.IndividualId = token.IndividualID;
|
||||
}
|
||||
return loanContainer;
|
||||
}
|
||||
|
||||
public static LoanContainer RemoveMemberId(LoanContainer loanContainer)
|
||||
{
|
||||
loanContainer.MemberId = null;
|
||||
loanContainer.IndividualId = null;
|
||||
return loanContainer;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user