first commit
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
using Landmark.OLA.Models.Loan;
|
||||
|
||||
namespace Landmark.OLA.Application.Common.Security
|
||||
{
|
||||
public static class CosmosIdService
|
||||
{
|
||||
public static LoanContainer AppendCosmosId(LoanContainer loanContainer, string cosmosId)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(cosmosId))
|
||||
{
|
||||
loanContainer.Id = cosmosId;
|
||||
}
|
||||
return loanContainer;
|
||||
}
|
||||
|
||||
public static LoanContainer RemoveCosmosId(LoanContainer loanContainer)
|
||||
{
|
||||
loanContainer.LoanId = null;
|
||||
return loanContainer;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user