public IActionResult GetAllProductsByActiveStatus(int IsActive) { IARresponse = BadRequest(); try { vds = objadminDb.GetAllProductsByActiveStatus(IsActive); if (vds != null) { IARresponse = Ok(new { productdata = vds }); } } catch (Exception ex) { IARresponse = BadRequest(ex.Message + " in AdminController GetAllProductsByActiveStatus()"); } return(IARresponse); }