初始化CRICS
This commit is contained in:
25
Service/Implement/HostUpdateManager.cs
Normal file
25
Service/Implement/HostUpdateManager.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Domain;
|
||||
|
||||
namespace Service.Implement
|
||||
{
|
||||
public class HostUpdateManager : GenericManagerBase<HostUpdate>, IHostUpdateManager
|
||||
{
|
||||
public IList<HostUpdate> LoadAllByPage(out long total, int page, int rows, string order, string sort, int hotelID)
|
||||
{
|
||||
return ((Dao.IHostUpdateRepository)(this.CurrentRepository)).LoadAllByPage(out total, page, rows, order, sort, hotelID).ToList();
|
||||
}
|
||||
/// <summary>
|
||||
/// 根据酒店ID获取第一条记录
|
||||
/// </summary>
|
||||
/// <param name="hotelID"></param>
|
||||
/// <returns></returns>
|
||||
public HostUpdate Get(string md5, int hotelID)
|
||||
{
|
||||
return ((Dao.IHostUpdateRepository)(this.CurrentRepository)).Get(md5, hotelID);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user