56 lines
1.6 KiB
C#
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 HeightmapService : IHeightmapService
|
|
{
|
|
/// <summary>
|
|
/// interface of ProjectSQL
|
|
/// </summary>
|
|
private IHeightmapSQL heightmapSQL;
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the ProjectService class
|
|
/// </summary>
|
|
public HeightmapService()
|
|
{
|
|
this.heightmapSQL = new HeightmapSQL();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Service method to get project by Id
|
|
/// </summary>
|
|
/// <param name="id">project id</param>
|
|
/// <returns>Data row</returns>
|
|
public DataRow GetHeightmapByProjectId(int id)
|
|
{
|
|
return this.heightmapSQL.GetHeightmapByProjectId(id);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Service method to get project by name
|
|
/// </summary>
|
|
/// <param name="name">project name</param>
|
|
/// <returns>Data row</returns>
|
|
public DataRow GetHeightmapByProjectName(string name)
|
|
{
|
|
return this.heightmapSQL.GetHeightmapByProjectName(name);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Service method to update club member
|
|
/// </summary>
|
|
/// <param name="project">club member</param>
|
|
/// <returns>true / false</returns>
|
|
public bool UpdateProject(HeightmapModel heightmapModel)
|
|
{
|
|
return this.heightmapSQL.UpdateProject(heightmapModel); //UpdateProject(project);
|
|
}
|
|
|
|
}
|
|
}
|