public NDIDCallbackRequestModel GetUserRequest(string namespaces, string identifier, string requestId)
 {
     using (LiteDatabase db = new LiteDatabase(_persistancePath))
     {
         LiteCollection <NDIDUserRequestDBModel> collection = db.GetCollection <NDIDUserRequestDBModel>(COLLECTION_REQUEST);
         NDIDUserRequestDBModel   request = collection.FindOne(x => x.Namespace == namespaces && x.Identifier == identifier && x.RequestId == requestId);
         NDIDCallbackRequestModel result  = _mapper.Map <NDIDCallbackRequestModel>(request);
         return(result);
     }
 }
 public long SaveUserRequest(string namespaces, string identifier, string requestId, NDIDCallbackRequestModel request)
 {
     using (LiteDatabase db = new LiteDatabase(_persistancePath))
     {
         LiteCollection <NDIDUserRequestDBModel> collection = db.GetCollection <NDIDUserRequestDBModel>(COLLECTION_REQUEST);
         NDIDUserRequestDBModel model = _mapper.Map <NDIDUserRequestDBModel>(request);
         long id = collection.Insert(model);
         return(id);
     }
 }