BigLitho/Large.Lito.Data/BusinessService/SystemSettingsService.cs

56 lines
1.6 KiB
C#

namespace Big.Lito.Data.BusinessService
{
using System.Data;
using Big.Lito.Data.DataAccess;
using Big.Lito.Data.DataModel;
public class SystemSettingsService : ISystemSettingsService
{
/// <summary>
/// interface of ProjectSQL
/// </summary>
private ISystemSettingsSQL systemSettingsSQL;
/// <summary>
/// Initializes a new instance of the ProjectService class
/// </summary>
public SystemSettingsService()
{
this.systemSettingsSQL = new SystemSettingsSQL();
}
/// <summary>
/// Service method to get project by Id
/// </summary>
/// <param name="id">project id</param>
/// <returns>Data row</returns>
public DataRow GetSystemSettingsByProjectId(int id)
{
return this.systemSettingsSQL.GetSystemSettingsByProjectId(id);
}
/// <summary>
/// Service method to get project by name
/// </summary>
/// <param name="name">project name</param>
/// <returns>Data row</returns>
public DataRow GetSystemSettingsByProjectName(string name)
{
return this.systemSettingsSQL.GetSystemSettingsByProjectName(name);
}
/// <summary>
/// Service method to update club member
/// </summary>
/// <param name="project">club member</param>
/// <returns>true / false</returns>
public bool UpdateProject(SystemSettingsModel systemSettingsModel)
{
return this.systemSettingsSQL.UpdateProject(systemSettingsModel); //UpdateProject(project);
}
}
}