parent
9c2768fe25
commit
b0d9f51681
@ -0,0 +1,15 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<PackageId>common-library-data-layer</PackageId>
|
||||
<Version>1.0.0</Version>
|
||||
<Authors>Don Oerkfitz</Authors>
|
||||
<Company>DMC Dynamics LLC</Company>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Common.Library\Common.Library.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@ -0,0 +1,54 @@
|
||||
using Common.Library.SQL.MySQL;
|
||||
using System;
|
||||
using System.Data;
|
||||
using Common.Library.DataLayer.DTO.Websites.DMCDynamics.LLC;
|
||||
|
||||
namespace Common.Library.DataLayer.DAO.Websites.DMCDynamics.LLC
|
||||
{
|
||||
public class AboutCompanyDAO : MySQL
|
||||
{
|
||||
public AboutCompanyDAO(string server, string database, string username, string password) : base(server, database, username, password)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public AboutCompanyDTOCollection SelectAll()
|
||||
{
|
||||
InitConnection();
|
||||
try
|
||||
{
|
||||
AboutCompanyDTOCollection items = new();
|
||||
|
||||
DBCommand.CommandType = CommandType.StoredProcedure;
|
||||
DBCommand.CommandText = "About_Company_SelectAll";
|
||||
DBReader = DBCommand.ExecuteReader();
|
||||
|
||||
while(DBReader.Read())
|
||||
{
|
||||
AboutCompanyDTO item = new AboutCompanyDTO()
|
||||
{
|
||||
AboutCompanyID = GetInt("AboutCompanyID").Value,
|
||||
AboutHeader = GetString("AboutHeader"),
|
||||
AboutDescription = GetString("AboutDescription"),
|
||||
IsVisible = GetBool("IsVisible").Value,
|
||||
CSS = GetString("CSS"),
|
||||
ImagePath = GetString("ImagePath")
|
||||
};
|
||||
|
||||
items.Add(item);
|
||||
}
|
||||
|
||||
return items.Count == 0 ? null : items;
|
||||
}
|
||||
catch(Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
{
|
||||
DisposeConnection();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
using Common.Library.SQL.MySQL;
|
||||
using System;
|
||||
using System.Data;
|
||||
using Common.Library.DataLayer.DTO.Websites.DMCDynamics.LLC;
|
||||
|
||||
namespace Common.Library.DataLayer.DAO.Websites.DMCDynamics.LLC
|
||||
{
|
||||
public class CompanyInfoDAO : MySQL
|
||||
{
|
||||
public CompanyInfoDAO(string server, string database, string username, string password) : base(server, database, username, password)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public CompanyInfoDTO Select()
|
||||
{
|
||||
InitConnection();
|
||||
try
|
||||
{
|
||||
CompanyInfoDTO item = null;
|
||||
|
||||
DBCommand.CommandType = CommandType.StoredProcedure;
|
||||
DBCommand.CommandText = "GetCompanyInfo";
|
||||
DBReader = DBCommand.ExecuteReader();
|
||||
|
||||
if(DBReader.Read())
|
||||
{
|
||||
item = new CompanyInfoDTO()
|
||||
{
|
||||
CompanyName = GetString("CompanyName"),
|
||||
Address = GetString("Address"),
|
||||
PhoneNumber = GetString("PhoneNumber"),
|
||||
EmailAddress = GetString("EmailAddress"),
|
||||
CompanySlogan = GetString("CompanySlogan")
|
||||
};
|
||||
}
|
||||
|
||||
return item;
|
||||
}
|
||||
catch(Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
{
|
||||
DisposeConnection();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
using Common.Library.SQL.MySQL;
|
||||
using System;
|
||||
using System.Data;
|
||||
using Common.Library.DataLayer.DTO.Websites.DMCDynamics.LLC;
|
||||
|
||||
namespace Common.Library.DataLayer.DAO.Websites.DMCDynamics.LLC
|
||||
{
|
||||
public class ServiceInformationDAO : MySQL
|
||||
{
|
||||
public ServiceInformationDAO(string server, string database, string username, string password) : base(server, database, username, password)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public ServiceInformationDTO SelectOne(int serviceID)
|
||||
{
|
||||
InitConnection();
|
||||
try
|
||||
{
|
||||
ServiceInformationDTO item = null;
|
||||
|
||||
DBCommand.CommandType = CommandType.StoredProcedure;
|
||||
DBCommand.CommandText = "ServiceInformation_SelectOne";
|
||||
DBCommand.Parameters.AddWithValue("@ID", serviceID);
|
||||
DBReader = DBCommand.ExecuteReader();
|
||||
|
||||
if (DBReader.Read())
|
||||
{
|
||||
|
||||
item = new ServiceInformationDTO()
|
||||
{
|
||||
ServiceInformationID = GetInt("ServiceInformationID").Value,
|
||||
ServiceID = GetInt("ServiceID").Value,
|
||||
ServiceDescription = GetString("ServiceDescription")
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
return item;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
{
|
||||
DisposeConnection();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
using Common.Library.SQL.MySQL;
|
||||
using System;
|
||||
using System.Data;
|
||||
using Common.Library.DataLayer.DTO.Websites.DMCDynamics.LLC;
|
||||
|
||||
namespace Common.Library.DataLayer.DAO.Websites.DMCDynamics.LLC
|
||||
{
|
||||
public class ServicesDAO : MySQL
|
||||
{
|
||||
public ServicesDAO(string server, string database, string username, string password) : base(server, database, username, password)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public ServicesDTOCollection SelectAll()
|
||||
{
|
||||
InitConnection();
|
||||
try
|
||||
{
|
||||
ServicesDTOCollection items = new ServicesDTOCollection();
|
||||
|
||||
DBCommand.CommandType = CommandType.StoredProcedure;
|
||||
DBCommand.CommandText = "GetServices";
|
||||
DBReader = DBCommand.ExecuteReader();
|
||||
|
||||
while (DBReader.Read())
|
||||
{
|
||||
|
||||
ServicesDTO item = new ServicesDTO()
|
||||
{
|
||||
ServiceID = GetInt("ServiceID").Value,
|
||||
ServiceName = GetString("ServiceName"),
|
||||
ServiceTags = GetString("ServiceTags"),
|
||||
FontAwesomeIcon = GetString("FontAwesomeIcon"),
|
||||
IsEnabled = GetBool("IsEnabled").Value
|
||||
};
|
||||
|
||||
items.Add(item);
|
||||
}
|
||||
|
||||
return (ServicesDTOCollection)(items.Count == 0 ? null : items);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
{
|
||||
DisposeConnection();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,79 @@
|
||||
using Common.Library.SQL.MySQL;
|
||||
using System;
|
||||
using System.Data;
|
||||
using Common.Library.DataLayer.DTO.Websites.DMCDynamics.LLC;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Common.Library.DataLayer.DAO.Websites.DMCDynamics.LLC
|
||||
{
|
||||
public class TestimonialImagesDAO : MySQL
|
||||
{
|
||||
public TestimonialImagesDAO(string server, string database, string username, string password) : base(server, database, username, password)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public TestimonialImagesDTO SelectOne(int testimonialID)
|
||||
{
|
||||
InitConnection();
|
||||
try
|
||||
{
|
||||
TestimonialImagesDTO item = null;
|
||||
|
||||
DBCommand.CommandType = CommandType.StoredProcedure;
|
||||
DBCommand.CommandText = "Testimonial_Images_SelectOne";
|
||||
DBCommand.Parameters.AddWithValue("tID", testimonialID);
|
||||
DBReader = DBCommand.ExecuteReader();
|
||||
|
||||
if (DBReader.Read())
|
||||
{
|
||||
|
||||
item = new TestimonialImagesDTO()
|
||||
{
|
||||
TestimonialImageID = GetInt("TestimonialImageID").Value,
|
||||
TestimonialID = GetInt("TestimonialID").Value,
|
||||
ImageType = GetString("ImageType"),
|
||||
ImageData = GetBytes("ImageData")
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
return item;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
{
|
||||
DisposeConnection();
|
||||
}
|
||||
}
|
||||
|
||||
public void InsertImage(int testimonialID, KeyValuePair<string, byte[]> imageData)
|
||||
{
|
||||
InitConnection();
|
||||
try
|
||||
{
|
||||
|
||||
DBCommand.CommandType = CommandType.StoredProcedure;
|
||||
DBCommand.CommandText = "Testimonial_Images_Insert";
|
||||
|
||||
DBCommand.Parameters.AddWithValue("@testimonialID", testimonialID);
|
||||
DBCommand.Parameters.AddWithValue("@imageType", imageData.Key);
|
||||
DBCommand.Parameters.AddWithValue("@imageData", imageData.Value);
|
||||
|
||||
DBCommand.ExecuteNonQuery();
|
||||
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
{
|
||||
DisposeConnection();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,110 @@
|
||||
using Common.Library.SQL.MySQL;
|
||||
using System;
|
||||
using System.Data;
|
||||
using Common.Library.DataLayer.DTO.Websites.DMCDynamics.LLC;
|
||||
using System.Collections.Generic;
|
||||
using MySql.Data.MySqlClient;
|
||||
|
||||
namespace Common.Library.DataLayer.DAO.Websites.DMCDynamics.LLC
|
||||
{
|
||||
public class TestimonialsDAO : MySQL
|
||||
{
|
||||
public TestimonialsDAO(string server, string database, string username, string password) : base(server, database, username, password)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public TestimonialsDTOCollection SelectAll()
|
||||
{
|
||||
InitConnection();
|
||||
try
|
||||
{
|
||||
TestimonialsDTOCollection items = new();
|
||||
|
||||
DBCommand.CommandType = CommandType.StoredProcedure;
|
||||
DBCommand.CommandText = "Testimonials_SelectAll";
|
||||
|
||||
DBReader = DBCommand.ExecuteReader();
|
||||
|
||||
while (DBReader.Read())
|
||||
{
|
||||
|
||||
TestimonialsDTO item = new()
|
||||
{
|
||||
TestimonialID = GetInt("TestimonialID").Value,
|
||||
CompanyName = GetString("CompanyName"),
|
||||
CompanySpokesPerson = GetString("CompanySpokesPerson"),
|
||||
CompanyTitle = GetString("CompanyTitle"),
|
||||
CompanyWebsite = GetString("CompanyWebsite"),
|
||||
Testimonial = GetString("Testimonial")
|
||||
};
|
||||
|
||||
items.Add(item);
|
||||
|
||||
}
|
||||
|
||||
return (items.Count == 0 ? null : items);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
{
|
||||
DisposeConnection();
|
||||
}
|
||||
}
|
||||
|
||||
public int Insert(TestimonialsDTO testimonial)
|
||||
{
|
||||
InitConnection();
|
||||
|
||||
try
|
||||
{
|
||||
DBCommand.CommandType = CommandType.StoredProcedure;
|
||||
DBCommand.CommandText = "Testimonials_Insert";
|
||||
|
||||
//> Add parameters
|
||||
|
||||
|
||||
DBCommand.ExecuteNonQuery();
|
||||
|
||||
return (int)DBCommand.Parameters["TestimonialID"].Value;
|
||||
}
|
||||
catch(Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
{
|
||||
DisposeConnection();
|
||||
}
|
||||
}
|
||||
|
||||
//public void InsertImage(int testimonialID, KeyValuePair<string, byte[]> imageData)
|
||||
//{
|
||||
// InitConnection();
|
||||
// try
|
||||
// {
|
||||
|
||||
// DBCommand.CommandType = CommandType.StoredProcedure;
|
||||
// DBCommand.CommandText = "Testimonial_Images_Insert";
|
||||
|
||||
// DBCommand.Parameters.AddWithValue("@testimonialID", testimonialID);
|
||||
// DBCommand.Parameters.AddWithValue("@imageType", imageData.Key);
|
||||
// DBCommand.Parameters.AddWithValue("@imageData", imageData.Value);
|
||||
|
||||
// DBCommand.ExecuteNonQuery();
|
||||
|
||||
// }
|
||||
// catch (Exception)
|
||||
// {
|
||||
// throw;
|
||||
// }
|
||||
// finally
|
||||
// {
|
||||
// DisposeConnection();
|
||||
// }
|
||||
//}
|
||||
}
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
using Common.Library.SQL.MySQL;
|
||||
using System;
|
||||
using System.Data;
|
||||
using Common.Library.DataLayer.DTO.Websites.JasonNeumannAudio.com;
|
||||
|
||||
|
||||
namespace Common.Library.DataLayer.DAO.Websites.JasonNeumannAudio.com
|
||||
{
|
||||
public class AboutPageDAO : MySQL
|
||||
{
|
||||
public AboutPageDAO(DBConnectionInformation connectionInformation) : base(connectionInformation){ }
|
||||
|
||||
public AboutPageDTO SelectAboutPageText()
|
||||
{
|
||||
InitConnection();
|
||||
AboutPageDTO item = null;
|
||||
|
||||
try
|
||||
{
|
||||
DBCommand.CommandType = CommandType.StoredProcedure;
|
||||
DBCommand.CommandText = "about_page_select_text";
|
||||
DBReader = DBCommand.ExecuteReader();
|
||||
|
||||
if(DBReader.Read())
|
||||
{
|
||||
item = new()
|
||||
{
|
||||
AboutPageID = GetInt("AboutPageID").Value,
|
||||
AboutPageText = FormatNewLineForHTML(GetString("AboutPageText"), 2)
|
||||
};
|
||||
}
|
||||
|
||||
return item;
|
||||
}
|
||||
catch(Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
{
|
||||
DisposeConnection();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
using Common.Library.SQL.MySQL;
|
||||
using System;
|
||||
using System.Data;
|
||||
using Common.Library.DataLayer.DTO.Websites.JasonNeumannAudio.com;
|
||||
|
||||
|
||||
namespace Common.Library.DataLayer.DAO.Websites.JasonNeumannAudio.com
|
||||
{
|
||||
public class ServicesDAO : MySQL
|
||||
{
|
||||
public ServicesDAO(DBConnectionInformation connectionInformation) : base(connectionInformation){ }
|
||||
|
||||
public ServicesDTOCollection GetServices()
|
||||
{
|
||||
InitConnection();
|
||||
ServicesDTOCollection items = new();
|
||||
|
||||
try
|
||||
{
|
||||
DBCommand.CommandType = CommandType.StoredProcedure;
|
||||
DBCommand.CommandText = "services_page_select_all";
|
||||
DBReader = DBCommand.ExecuteReader();
|
||||
|
||||
while(DBReader.Read())
|
||||
{
|
||||
ServicesDTO item = new()
|
||||
{
|
||||
ServicePageID = GetInt("ServicePageID").Value,
|
||||
ServiceText = GetString("ServiceText")
|
||||
};
|
||||
|
||||
items.Add(item);
|
||||
}
|
||||
|
||||
return items.Count == 0 ? null : items;
|
||||
}
|
||||
catch(Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
{
|
||||
DisposeConnection();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,112 @@
|
||||
using Common.Library.SQL.MySQL;
|
||||
using System;
|
||||
using System.Data;
|
||||
using Common.Library.DataLayer.DTO.Websites.JasonNeumannAudio.com;
|
||||
|
||||
|
||||
namespace Common.Library.DataLayer.DAO.Websites.JasonNeumannAudio.com
|
||||
{
|
||||
public class WorkPageDAO : MySQL
|
||||
{
|
||||
public WorkPageDAO(DBConnectionInformation connectionInformation) : base(connectionInformation){ }
|
||||
|
||||
public WorkPageDTO SelectOne(WorkPageDTO.WorkPageType workPageType)
|
||||
{
|
||||
InitConnection();
|
||||
WorkPageDTO item = null;
|
||||
|
||||
try
|
||||
{
|
||||
DBCommand.CommandType = CommandType.StoredProcedure;
|
||||
DBCommand.CommandText = "work_page_select_one";
|
||||
DBCommand.Parameters.AddWithValue("@TypeID", (int)workPageType);
|
||||
DBReader = DBCommand.ExecuteReader();
|
||||
|
||||
if(DBReader.Read())
|
||||
{
|
||||
item = new()
|
||||
{
|
||||
WorkPageID = GetInt("WorkPageID").Value,
|
||||
WorkPageTypeID = (WorkPageDTO.WorkPageType)GetInt("WorkPageTypeID").Value,
|
||||
WorkPageName = GetString("WorkPageName"),
|
||||
WorkPageLink = GetString("WorkPageLink"),
|
||||
WorkPageValue = FormatBoldForHTML(GetString("WorkPageValue"))
|
||||
};
|
||||
}
|
||||
|
||||
return item;
|
||||
}
|
||||
catch(Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
{
|
||||
DisposeConnection();
|
||||
}
|
||||
}
|
||||
|
||||
public WorkPageDTOCollection SelectAllByWorkPageType(WorkPageDTO.WorkPageType workPageType)
|
||||
{
|
||||
InitConnection();
|
||||
WorkPageDTOCollection items = new();
|
||||
|
||||
try
|
||||
{
|
||||
DBCommand.CommandType = CommandType.StoredProcedure;
|
||||
DBCommand.CommandText = "work_page_select_all_by_work_page_type";
|
||||
DBCommand.Parameters.AddWithValue("@TypeID", (int)workPageType);
|
||||
DBReader = DBCommand.ExecuteReader();
|
||||
|
||||
while (DBReader.Read())
|
||||
{
|
||||
WorkPageDTO item = new()
|
||||
{
|
||||
// WorkPageID = GetInt("WorkPageID").Value,
|
||||
WorkPageTypeID = (WorkPageDTO.WorkPageType)GetInt("WorkPageTypeID").Value,
|
||||
WorkPageName = GetString("WorkPageName"),
|
||||
WorkPageLink = GetString("WorkPageLink"),
|
||||
WorkPageValue = FormatBoldForHTML(GetString("WorkPageValue"))
|
||||
};
|
||||
|
||||
items.Add(item);
|
||||
}
|
||||
|
||||
return items.Count == 0 ? null : items;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
{
|
||||
DisposeConnection();
|
||||
}
|
||||
}
|
||||
|
||||
// public void InsertWorkPageItem(WorkPageDTO item)
|
||||
// {
|
||||
// InitConnection();
|
||||
// WorkPageDTOCollection items = new();
|
||||
|
||||
// try
|
||||
// {
|
||||
// DBCommand.CommandType = CommandType.StoredProcedure;
|
||||
// DBCommand.CommandText = "work_page_insert_work_page_item";
|
||||
|
||||
// // DBCommand.Parameters.AddWithValue("@TypeID", (int)workPageType);
|
||||
|
||||
|
||||
// DBCommand.ExecuteNonQuery();
|
||||
// }
|
||||
// catch (Exception)
|
||||
// {
|
||||
// throw;
|
||||
// }
|
||||
// finally
|
||||
// {
|
||||
// DisposeConnection();
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
using System.Collections.Generic;
|
||||
using Common.Library.CustomObjects;
|
||||
using System.Linq;
|
||||
|
||||
namespace Common.Library.DataLayer.DTO.Websites.DMCDynamics.LLC
|
||||
{
|
||||
public class CompanyInfoDTO
|
||||
{
|
||||
public string CompanyName { get; set; }
|
||||
public string PhoneNumber { get; set; }
|
||||
public string EmailAddress { get; set; }
|
||||
public string Address { get; set; }
|
||||
public string CompanySlogan { get; set; }
|
||||
|
||||
public PhoneNumberContainer FormattedPhoneNumber
|
||||
{
|
||||
get
|
||||
{
|
||||
List<string> phoneNumber = PhoneNumber.Split(" ").Select(val => val.Trim()).ToList<string>();
|
||||
return new PhoneNumberContainer { AreaCode = phoneNumber[0], PhoneNumber = phoneNumber[1] };
|
||||
}
|
||||
}
|
||||
|
||||
public AddressContainer FormattedAddress
|
||||
{
|
||||
get
|
||||
{
|
||||
List<string> address = Address.Split(",").Select(val => val.Trim()).ToList<string>();
|
||||
|
||||
string houseNumber = address[0].Substring(0, address[0].IndexOf(" ")).Trim();
|
||||
string streetName = address[0].Substring(address[0].IndexOf(" ")).Trim();
|
||||
string city = address[1].Trim();
|
||||
string state = address[2].Substring(0, address[2].IndexOf(" ")).Trim();
|
||||
string zip = address[2].Substring(address[2].IndexOf(" ")).Trim();
|
||||
|
||||
return new AddressContainer
|
||||
{
|
||||
HouseNumber = houseNumber,
|
||||
StreetName = streetName,
|
||||
City = city,
|
||||
State = state,
|
||||
Zip = zip
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class CompanyInfoDTOCollection : List<CompanyInfoDTO> { }
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Common.Library.DataLayer.DTO.Websites.DMCDynamics.LLC
|
||||
{
|
||||
public class ServiceInformationDTO
|
||||
{
|
||||
public int ServiceInformationID { get; set; }
|
||||
public int ServiceID { get; set; }
|
||||
public string ServiceDescription { get; set; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
public class ServiceInformationDTOCollection : List<ServiceInformationDTO> {}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Common.Library.DataLayer.DTO.Websites.DMCDynamics.LLC
|
||||
{
|
||||
public class ServicesDTO
|
||||
{
|
||||
public int ServiceID { get; set; }
|
||||
public string ServiceName { get; set; }
|
||||
public string ServiceTags { get; set; }
|
||||
public string FontAwesomeIcon { get; set; }
|
||||
public bool IsEnabled { get; set; }
|
||||
}
|
||||
|
||||
public class ServicesDTOCollection : List<ServicesDTO> {}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Common.Library.DataLayer.DTO.Websites.JasonNeumannAudio.com
|
||||
{
|
||||
public class AboutPageDTO
|
||||
{
|
||||
public int AboutPageID { get; set;}
|
||||
public string AboutPageText { get; set; }
|
||||
}
|
||||
|
||||
public class AboutPageDTOCollection : List<AboutPageDTO>{ }
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Common.Library.DataLayer.DTO.Websites.JasonNeumannAudio.com
|
||||
{
|
||||
public class ServicesDTO
|
||||
{
|
||||
public int ServicePageID { get; set; }
|
||||
public string ServiceText { get; set; }
|
||||
}
|
||||
|
||||
public class ServicesDTOCollection : List<ServicesDTO>{ }
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Common.Library.DataLayer.DTO.Websites.JasonNeumannAudio.com
|
||||
{
|
||||
public class WorkPageDTO
|
||||
{
|
||||
public int WorkPageID { get; set; }
|
||||
public WorkPageType WorkPageTypeID { get; set; }
|
||||
public string WorkPageName { get; set; }
|
||||
public string WorkPageValue { get; set; }
|
||||
public string WorkPageLink { get; set; }
|
||||
|
||||
public enum WorkPageType
|
||||
{
|
||||
CopyText = 1,
|
||||
Links = 2,
|
||||
Poster = 3
|
||||
}
|
||||
}
|
||||
|
||||
public class WorkPageDTOCollection : List<WorkPageDTO>{ }
|
||||
}
|
Loading…
Reference in New Issue