public async Task<ActionResult> GetUsers() { AccountService service = new AccountService(); if (AccountService.AuthenticationToken.IsNullOrWhiteSpace()) { return Json(null, JsonRequestBehavior.AllowGet); } var models = await service.GetAllUsers(); return Json(models, JsonRequestBehavior.AllowGet); }