public static List <ArrangementPaymentMethods> GetPaymenyMethodList()
    {
        var dataAccess = new CollectionHubData.DataAccess();
        var returnData = dataAccess.GetPaymenyMethodList();

        return(returnData);
    }
    public static List <ArrangementFrequencyItem> GetFrequencyList()
    {
        var dataAccess = new CollectionHubData.DataAccess();
        var returnData = dataAccess.GetFrequencyList();

        return(returnData);
    }
    public static bool SetDebtResponsibleUser(int userId, int debtId)
    {
        var returnData = false;
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.SetDebtResponsibleUser(debtId, userId);

        return(returnData);
    }
    public static int CreateContactNote(int userId, int pin, int uprn)
    {
        int returnData = 0;
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.CreateDebtorNote(userId, pin, uprn);

        return(returnData);
    }
    public static bool CreateAdHocItem(int userId, int actionItemId, int debtId)
    {
        var returnData = false;
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.CreateAdHocItem(userId, actionItemId, debtId);

        return(returnData);
    }
    public static List <TreatmentActionItems> GetTreatmentsForGroup(string actionType, int debtId)
    {
        var returnData = new List <TreatmentActionItems>();
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.GetTreatmentsForGroup(actionType, debtId);

        return(returnData);
    }
    public static List <DataMergeFields> GetDataMergeFields(string viewName)
    {
        var returnData = new List <DataMergeFields>();
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.GetDataMergeFields(viewName);

        return(returnData);
    }
    public static List <AttributeItem> GetAttributeList(bool listDebtAttributes, bool listPersonAttributes)
    {
        var returnData = new List <AttributeItem>();
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.GetAttributeList(listDebtAttributes, listPersonAttributes);

        return(returnData);
    }
    public static bool SaveBatchIncludeStatus(int recordIdentifier, Boolean include)
    {
        var returnData = false;
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.SaveBatchIncludeStatus(recordIdentifier, include);

        return(returnData);
    }
    public static bool SaveTemplateContent(int chtId, int userId, string content, string notes)
    {
        var returnData = false;
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.SaveTemplateContent(chtId, userId, content, notes);

        return(returnData);
    }
    public static bool CreateMatch(int matchId, string pin, string userId)
    {
        var returnData = false;
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.CreateMatch(matchId, pin, userId);

        return(returnData);
    }
    public static bool RemoveMatch(int matchId)
    {
        var returnData = false;
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.RemoveMatch(matchId);

        return(returnData);
    }
    public static List <BatchProcessFields> GetBatchProcessFields(int bp_id)
    {
        var returnData = new List <BatchProcessFields>();
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.GetBatchProcessFields(bp_id);

        return(returnData);
    }
    public static List <BatchProcessJobs> GetBatchProcessJobs()
    {
        var returnData = new List <BatchProcessJobs>();
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.GetBatchProcessJobs();

        return(returnData);
    }
    public static List <PersonDetails> GetPersonDetails(int pin, string uprn)
    {
        var returnData = new List <PersonDetails>();
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.GetPersonDetails(pin, uprn);

        return(returnData);
    }
    public static int CreateNewDocumentTemplate(int userId, string documentName, string viewName, int debtTypeId)
    {
        var returnData = -1;
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.CreateNewDocumentTemplate(userId, documentName, viewName, debtTypeId);

        return(returnData);
    }
    public static DocumentTemplate GetDocumentTemplateByTemplateId(int templateId)
    {
        var returnData = new DocumentTemplate();
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.GetDocumentTemplateByTemplateId(templateId);

        return(returnData);
    }
    public static bool DeactivateBatch(int batchId)
    {
        var returnData = false;
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.DeactivateBatch(batchId);

        return(returnData);
    }
    public static List <DataMergeSource> GetDataMergeOptions()
    {
        var returnData = new List <DataMergeSource>();
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.GetDataMergeOptions();

        return(returnData);
    }
    public static string GetBatchName(int batchId)
    {
        var returnData = String.Empty;
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.GetBatchName(batchId);

        return(returnData);
    }
    public static List <string> GetTreatmentGroups(int debtId)
    {
        var returnData = new List <string>();
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.GetTreatmentGroups(debtId);

        return(returnData);
    }
    public static List <BatchRunHistory> GetBatchRunHistory()
    {
        var returnData = new List <BatchRunHistory>();
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.GetBatchRunHistory();

        return(returnData);
    }
    public static List <DebtStream> GetDebtStreams()
    {
        var returnData = new List <DebtStream>();
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.GetDebtStreams();

        return(returnData);
    }
    public static List <BatchProcessResult> GetBatchProcessResults(int batchProcessId)
    {
        var returnData = new List <BatchProcessResult>();
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.GetBatchProcessResults(batchProcessId);

        return(returnData);
    }
    public static bool SaveDebtorNote(int noteId, int userId, int pin, string theirRef, string reason, string content, string newLandLine, string newMobile, string newEmail)
    {
        var returnData = false;
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.SaveDebtorNote(noteId, userId, pin, theirRef, reason, content, newLandLine, newMobile, newEmail);

        return(returnData);
    }
    public static BatchProcessParentFields GetBatchProcessParentFields(int batchRunId)
    {
        var returnData = new BatchProcessParentFields();
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.GetBatchProcessParentFields(batchRunId);

        return(returnData);
    }
    public static List <TreatmentCycle> GetTreatmentCyclesList()
    {
        var returnData = new List <TreatmentCycle>();
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.GetTreatmentCyclesList();

        return(returnData);
    }
    public static List <BatchProcessFieldsFromRun> GetBatchProcessFieldsFromRun(int batchRunId)
    {
        var returnData = new List <BatchProcessFieldsFromRun>();
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.GetBatchProcessFieldsFromRun(batchRunId);

        return(returnData);
    }
    public static List <UserData> GetSystemUsers(bool showInvalid)
    {
        var returnData = new List <UserData>();
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.GetSystemUsers(showInvalid);

        return(returnData);
    }
    public static List <DocumentTemplates> GetDocumentTemplates(int userId)
    {
        var returnData = new List <DocumentTemplates>();
        var dataAccess = new CollectionHubData.DataAccess();

        returnData = dataAccess.GetDocumentTemplates(userId);

        return(returnData);
    }