Beispiel #1
0
        //StockOut Functions

        public int AddStockOut(StockOutDTO obj)
        {
            StockOutProvider provider = new StockOutProvider();

            if (provider.GetStockOutById(obj.StockOutId) == null)
            {
                provider.AddStockOut(obj);
                return(1);
            }
            return(-1);
        }
Beispiel #2
0
        public int DeleteStockOut(int id)
        {
            StockOutProvider provider = new StockOutProvider();
            var obj = provider.GetStockOutById(id);

            if (obj != null)
            {
                provider.DeleteStockOut(obj);
                return(1);
            }
            return(-1);
        }
Beispiel #3
0
        public StockOutDTO GetStockOut(int id)
        {
            StockOutProvider provider = new StockOutProvider();

            return(provider.GetStockOutById(id));
        }