Guest User

Untitled

a guest
Oct 23rd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. [AcceptVerbs("GET")]
  2. [Route("refreshFromService/{guid}")]
  3. public HttpResponseMessage RefreshDataFromService(string guid)
  4. {
  5. if (!string.IsNullOrEmpty(guid) && guid.Length == 36 && new Guid(guid) == new Guid("C943F8E4-647D-4044-B19E-4D97FA38EDE0"))
  6. {
  7. new AdData().RefreshCacheAdData(true);
  8. new JdeData().RefreshCacheJdeData(true);
  9. return new HttpResponseMessage(HttpStatusCode.OK);
  10. }
  11.  
  12. return new HttpResponseMessage(HttpStatusCode.Forbidden);
  13. }
Add Comment
Please, Sign In to add comment