public IHttpActionResult Add(ApiModels.Account account) { var repo = new AccountsRepository(); if (repo.Add(_connectionString, account)) { return(Ok()); } return(BadRequest("Account Data Supplied is invalid.")); }