[HttpPut] // chỉnh sửa thông tin
        public bool UpdateMoney(int id, String name, DateTime date, String content, int amount, String note)
        {
            try
            {
                QuanlythuchiEntities1 db = new QuanlythuchiEntities1();

                money_dtb money = db.money_dtb.FirstOrDefault(x => x.id == id); // lay money ton tai

                if (money == null)
                {
                    return(false);
                }
                money.name     = name;
                money.date     = date;
                money.content1 = content;
                money.amount   = amount;
                money.note     = note;

                return(true);
            }
            catch
            {
                return(false);
            }
        }
        [HttpDelete] // xóa thông tin
        public bool DeleteMoney(int id)
        {
            QuanlythuchiEntities1 db = new QuanlythuchiEntities1();

            money_dtb money = db.money_dtb.FirstOrDefault(x => x.id == id);

            if (money == null)
            {
                return(false);
            }

            return(true);
        }
        [HttpPost] // Thêm mới thông tin
        public bool InSertNewMoney(String name, DateTime date, String content, int amount, String note)
        {
            try
            {
                QuanlythuchiEntities1 db    = new QuanlythuchiEntities1();
                money_dtb             money = new money_dtb();
                money.name     = name;
                money.date     = date;
                money.content1 = content;
                money.amount   = amount;
                money.note     = note;

                return(true);
            }
            catch
            {
                return(false);
            }
        }
        public money_dtb GetMoney(int id)
        {
            QuanlythuchiEntities1 db = new QuanlythuchiEntities1();

            return(db.money_dtb.FirstOrDefault(x => x.id == id));
        }