Partly working
This commit is contained in:
15
Tanshu.Accounts.Contracts/DAOFactory/FoodTableDAO.cs
Normal file
15
Tanshu.Accounts.Contracts/DAOFactory/FoodTableDAO.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Tanshu.Accounts.Contracts;
|
||||
|
||||
namespace Tanshu.Accounts.DAOFactory
|
||||
{
|
||||
public interface IFoodTableDAO : IDisposable
|
||||
{
|
||||
void Insert(FoodTableBO foodTable);
|
||||
void Update(FoodTableBO foodTable);
|
||||
bool Delete(int tableID);
|
||||
FoodTableBO GetFoodTable(int tableID);
|
||||
List<FoodTableBO> GetFoodTables();
|
||||
}
|
||||
}
|
||||
@ -19,8 +19,9 @@ namespace Tanshu.Accounts.DAOFactory
|
||||
|
||||
List<ProductDisplaySmallBO> GetFilteredProducts(Dictionary<string, string> filter);
|
||||
|
||||
List<ProductTypeBO> GetProductTypes();
|
||||
|
||||
List<ProductDisplayBO> GetProducts(string name, int skip, int count);
|
||||
|
||||
List<ProductDisplaySmallBO> GetProducts(Guid productTypeID);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
17
Tanshu.Accounts.Contracts/DAOFactory/ProductTypeDAO.cs
Normal file
17
Tanshu.Accounts.Contracts/DAOFactory/ProductTypeDAO.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Tanshu.Accounts.Contracts;
|
||||
|
||||
namespace Tanshu.Accounts.DAOFactory
|
||||
{
|
||||
public interface IProductTypeDAO : IDisposable
|
||||
{
|
||||
bool Insert(ProductTypeBO productType);
|
||||
ProductTypeBO GetProductType(Guid productTypeID);
|
||||
ProductTypeBO GetProductType(string name);
|
||||
bool Delete(Guid productTypeID);
|
||||
bool Update(ProductTypeBO productType);
|
||||
List<ProductTypeBO> GetProductTypes();
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user