public ActionResult GetAccountType() { string authHeader = this.HttpContext.Request.Headers["Authorization"]; TokenModel tokenModel = new TokenModel(); ClaimsPrincipal auth = tokenModel.GetPrincipal(authHeader); if (auth.Identity.IsAuthenticated) { new ClickTracker("GetAccountType", true, false, "", auth.Identity.Name); AccountType accountType = new AccountType(); return(Ok(accountType.GetAccountTypes())); } return(Ok("")); }
public IEnumerable <string> GetAccountTypes( ) { return(AccountType.GetAccountTypes()); }