// A utility function that facilitates the call to the helper to retrieve Users from the database. private IEnumerable <ApplicationUser> getUsers() { return(helper.doGetAndGetFromResponse <IEnumerable <ApplicationUser> >("InvoicesData/GetUsers")); }
// A utility function that facilitates the call to the helper to retrieve a Product from the database. private ProductDto getProductDto(int productId) { return(productsHelper.doGetAndGetFromResponse <ProductDto>(productsHelper.getUrl("Get", productId))); }
// A utility function that facilitates the call to the helper to retrieve a list of ProductXInvoices from the database. private IEnumerable <ProductXInvoiceDto> getProductXInvoices(int invoiceId) { return(xInvoiceHelper.doGetAndGetFromResponse <IEnumerable <ProductXInvoiceDto> >(xInvoiceHelper.getUrl("Get", 0) + "s/" + invoiceId)); }