// GET api/AccountTypeAPI/5
        public AccountType GetAccountType(int id)
        {
            AccountType accounttype = db.GetById(id);

            if (accounttype == null)
            {
                throw new HttpResponseException(Request.CreateResponse(HttpStatusCode.NotFound));
            }

            return(accounttype);
        }