public IActionResult AddorEditCategoryByAdmin([FromBody] Products_Category model)
        {
            IARresponse = Unauthorized();

            Products_Category product_category = new Products_Category();

            try
            {
                product_category.prod_cat_id = model.prod_cat_id;
                product_category.pcName      = model.pcName;
                product_category.PID         = model.PID;
                product_category.IsActive    = 1;

                if (objadmindb.AddorEditCategoryByAdmin(product_category) == "")
                {
                    IARresponse = Ok(new { res = "Products Added / Updated Successfully" });
                }
                else
                {
                    IARresponse = BadRequest(new { res = "Products not Added / Updated... try again later!.." + objadmindb.AddorEditCategoryByAdmin(product_category) });
                }
            }
            catch (Exception ex)
            {
                IARresponse = BadRequest(new { res = ex.Message });
            }
            return(IARresponse);
        }