public async Task <IActionResult> PutTraderCategory(int id, TraderCategoryVM tcvm)
        {
            if (id != tcvm.Trader_Category_ID)
            {
                return(BadRequest());
            }

            Trader_Category tc = new Trader_Category();

            tc.Trader_Category_ID   = tcvm.Trader_Category_ID;
            tc.Trader_Category_Name = tcvm.Trader_Category_Name;

            db.Entry(tc).State = EntityState.Modified;
            await db.SaveChangesAsync();

            try
            {
                await db.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!Trader_CategoryExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
        public async Task <ActionResult <Trader_Category> > PostTraderCategory([FromBody] TraderCategoryVM tcvm)
        {
            Trader_Category tc = new Trader_Category();

            //tc.Trader_Category_ID = tcvm.Trader_Category_ID;
            tc.Trader_Category_Name = tcvm.Trader_Category_Name;

            db.Trader_Category.Add(tc);

            //db.Entry(tc).State = EntityState.Modified;
            await db.SaveChangesAsync();

            return(Ok("Add succesful"));
        }