Пример #1
0
 public static Matrimony.Model.Base.Response CreateResponse(string token, Matrimony.Model.Base.Response response)
 {
     if (response != null)
     {
         response.Metadata.Token = token;
         return(response);
     }
     return(null);
 }
Пример #2
0
 public static Matrimony.Model.Base.Response CreateResponse(JwtAuthentication jwtAuthentication, HttpRequest httpRequest, Matrimony.Model.Base.Response response)
 {
     if (response != null)
     {
         var token = new AuthenticationHelper().VerifyToken(jwtAuthentication, httpRequest);
         response.Metadata.Token = token;
         return(response);
     }
     return(null);
 }