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); }
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); }