public async Task<IHttpActionResult> PostHouseHold(string name)
        {
            var user = db.Users.Find(User.Identity.GetUserId());

            if (user.HouseHoldId != null)
            {
                return BadRequest("You must leave your current household before you can create a new household");
            }

            else
            {
                var houseHold = new HouseHold()
                {
                    Name = name
                };

                user.HouseHoldId = houseHold.id;

                string[] defaultCategories = { "New Account Created", "User Adjusted Balance" ,"Job","Mortgage/Rent","Food","Utilites","Misc" };

                foreach(var catName in defaultCategories) 
                {
                    houseHold.Categories.Add(new Category
                    {
                        HouseHoldId = houseHold.id,
                        Name = catName
                    });
                }

                db.HouseHolds.Add(houseHold);
                await db.SaveChangesAsync();

                var returnHouse = new HouseHoldVM()
                {
                    Accounts = houseHold.HouseHoldAccounts.Where(a => a.isArchived == false).ToList(),
                    BudgetItems = houseHold.BudgetItems.ToList(),
                    Users = houseHold.Users.ToList()

                };

                return Ok(returnHouse);
            }            
        }
        public IHttpActionResult GetHouseHold()
        {
            var user = db.Users.Find(User.Identity.GetUserId());
            var houseHold = user.HouseHold;

            if (houseHold == null)
            {
                return BadRequest("User is not currently a memeber of a household.");
            }

            else
            {
                var returnHouse = new HouseHoldVM()
                {
                    Name = user.HouseHold.Name,
                    Accounts = houseHold.HouseHoldAccounts.Where(a => a.isArchived == false).ToList(),
                    BudgetItems = houseHold.BudgetItems.ToList(),
                    Users = houseHold.Users.ToList()

                };

                return Ok(returnHouse);
            }


        }