public int Insert_CustomerToSiteMapping_mst(CustomerToSiteMapping objCustomerToSiteMapping)
 {
     return (int)ExecuteNonQuery(sp_CustomerToSiteMapping_Insert, new object[] { objCustomerToSiteMapping.Siteid, objCustomerToSiteMapping.Custid });
 }
    public CollectionBase GenerateCustomerToSiteMapping_mstCollection(ref IDataReader returnData)
    {
        BLLCollection<CustomerToSiteMapping> col = new BLLCollection<CustomerToSiteMapping>();
        while (returnData.Read())
        {

            CustomerToSiteMapping obj = new CustomerToSiteMapping();
            obj.Custid = (int)returnData["Custid"];
            obj.Siteid = (int)returnData["Siteid"];
            col.Add(obj);
        }
        returnData.Close();
        returnData.Dispose();
        return col;
    }