Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [AcceptVerbs("GET")]
- [Route("refreshFromService/{guid}")]
- public HttpResponseMessage RefreshDataFromService(string guid)
- {
- if (!string.IsNullOrEmpty(guid) && guid.Length == 36 && new Guid(guid) == new Guid("C943F8E4-647D-4044-B19E-4D97FA38EDE0"))
- {
- new AdData().RefreshCacheAdData(true);
- new JdeData().RefreshCacheJdeData(true);
- return new HttpResponseMessage(HttpStatusCode.OK);
- }
- return new HttpResponseMessage(HttpStatusCode.Forbidden);
- }
Add Comment
Please, Sign In to add comment