public List <InsurancePolicy> GetInsurances(InsurancePolicy entity) { try { DynamicParameters parms = entity.GetParameters(); return(repositoryInsurance.ExecuteQuery <InsurancePolicy>("SP_GetInsurances", parms)); } catch (Exception ex) { throw ex; } }