Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [HttpGet]
- [Route("yfirlitsmynd/is-nova-number/")]
- [IsMsisdnInSession]
- public ActionResult IsNovaNumber()
- {
- AjaxResponseObject response = new AjaxResponseObject();
- // not a make or break check, return true even if something goes wrong
- response.success = true;
- SimlookupService.SimLookupServiceClient service = new SimlookupService.SimLookupServiceClient();
- try
- {
- string msisdn = RouteData.Values["sessionPhoneNo"] as string;
- if (msisdn != null)
- {
- var res = service.getSIMInfoByMvnoMsisdn(msisdn);
- if (res.Code == 0)
- {
- response.message = "Ekki Nova númer :/";
- }
- }
- }
- catch (Exception e)
- {
- return Json(response, JsonRequestBehavior.AllowGet);
- }
- return Json(response, JsonRequestBehavior.AllowGet);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement