using GB5Shared.DTO.Framework.AutoNumber; using GB5Shared.DTO.Framework.Criteria; using GB5Shared.DTO.Framework.Login; using GB5Shared.GenerateAutoNumber; using GB5Shared.Resource.GB5Solution; using GB5Shared.ResponseStandard; using MMDAL.CustomCode.ItemDetail; using MMDAL.DTO.Item; using System; using System.Threading.Tasks; namespace MMBLL.ItemDetail { public class ItemDetailBLL : IItemDetailBLL { private readonly IItemDetailDAL _ItemDetailDAL; private readonly AutoNumber _AutoNumber; public ItemDetailBLL(IItemDetailDAL ItemDetailDAL, AutoNumber AutoNumber) { _ItemDetailDAL = ItemDetailDAL; _AutoNumber = AutoNumber; } public async Task GetItemDetail(int ItemDetailId, LoginDTO LoginDTO) { try { return await _ItemDetailDAL.GetItemDetail(ItemDetailId, LoginDTO); } catch (Exception) { throw; } } public async Task DeleteItemDetail(int ItemDetailId, LoginDTO LoginDTO) { try { return await _ItemDetailDAL.DeleteItemDetail(ItemDetailId, LoginDTO); } catch (Exception) { throw; } } } }