//StockOut Functions public int AddStockOut(StockOutDTO obj) { StockOutProvider provider = new StockOutProvider(); if (provider.GetStockOutById(obj.StockOutId) == null) { provider.AddStockOut(obj); return(1); } return(-1); }
public int DeleteStockOut(int id) { StockOutProvider provider = new StockOutProvider(); var obj = provider.GetStockOutById(id); if (obj != null) { provider.DeleteStockOut(obj); return(1); } return(-1); }
public StockOutDTO GetStockOut(int id) { StockOutProvider provider = new StockOutProvider(); return(provider.GetStockOutById(id)); }