public IHttpActionResult GetAccountList() { JSON JSONReturn = new JSON(); List <AccountDetails> Accounts = new List <AccountDetails>(); Accounts = DatabaseAccess.AccountList(); JSONReturn.Data = Accounts; JSONReturn.Message = "Success"; return(Json(JSONReturn)); }