public IEnumerable <PremiumListUI> GetPremiumsByCompanyUI([FromUri] string id) { ProfileCommon profile = APIhelper.GetProfileCommon(Request); int companyId = DB.GetBorrowerClientCompanyId(profile, id); return(PremiumListUI.GetPremiumsByCompanyUI(companyId, profile, id)); }
public IEnumerable <PremiumListUI> GetByPolicyUI([FromUri] PoliciesFilter filter) { ProfileCommon profile = APIhelper.GetProfileCommon(Request); return(PremiumListUI.GetPremiumsByPolicyUI(profile, filter)); }