public IActionResult AddPlanAddOns([FromBody] InsurancePlanAddOns item) { try { //InsuranceCompanyOptionalCover InsuranceCompanyOptionalCover = new InsuranceCompanyOptionalCover //{ // InsuranceCompanyId = InsuranceCompanyId, // OptionalCoverId = OptionalCoverId //}; _itemService.AddPlanAddOns(item); return(Ok(item)); } catch (AppException ex) { return(DefaultError(ex.Message)); } }