public IActionResult DeleteProductByAdmin([FromBody] int pid)
 {
     IARresponse = BadRequest();
     try
     {
         if (objadmindb.DeleteProductByAdmin(pid) == "")
         {
             IARresponse = Ok(new { res = "Product Deleted Successfully" });
         }
         else
         {
             IARresponse = BadRequest(new { res = "Product not Deleted... try again later!.." + objadmindb.DeleteProductByAdmin(pid) });
         }
     }
     catch (Exception ex)
     {
         IARresponse = BadRequest(new { res = ex.Message });
     }
     return(IARresponse);
 }