namespace HStation.BLL
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public class PumpPartPropContent : CAL.IPumpPartPropContent
|
{
|
private readonly HStation.CAL.IPumpPartPropContent _cal = CALCreateHelper.CreateCAL<HStation.CAL.IPumpPartPropContent>();
|
|
#region Query
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<List<PumpPropContentDto>> GetAll()
|
{
|
return await _cal.GetAll();
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<PumpPropContentDto> GetByID(long ID)
|
{
|
return await _cal.GetByID(ID);
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<List<PumpPropContentDto>> GetByIds(List<long> Ids)
|
{
|
return await _cal.GetByIds(Ids);
|
}
|
|
#endregion Query
|
|
#region Insert
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<long> Insert(AddPumpPropContentDto model)
|
{
|
return await _cal.Insert(model);
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<bool> Inserts(List<AddPumpPropContentDto> list)
|
{
|
return await _cal.Inserts(list);
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<bool> BulkInserts(List<AddPumpPropContentDto> list)
|
{
|
return await _cal.BulkInserts(list);
|
}
|
|
#endregion Insert
|
|
#region Update
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<bool> Update(UpdatePumpPropContentDto model)
|
{
|
return await _cal.Update(model);
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<bool> Updates(List<UpdatePumpPropContentDto> list)
|
{
|
return await _cal.Updates(list);
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<bool> BulkUpdates(List<UpdatePumpPropContentDto> list)
|
{
|
return await _cal.BulkUpdates(list);
|
}
|
|
#endregion Update
|
|
#region Delete
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<bool> DeleteByID(long ID)
|
{
|
return await _cal.DeleteByID(ID);
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<bool> DeleteByIds(List<long> Ids)
|
{
|
return await _cal.DeleteByIds(Ids);
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public async Task<bool> DeleteAll()
|
{
|
return await _cal.DeleteAll();
|
}
|
|
#endregion Delete
|
}
|
}
|