public int DoSaveInventoryItem(InventoryItem inventoryItem, Identification identification) { logger.Log(LogLevel.Trace, AppLib.GetCaller(logger)); //Validate Inventory Object if (!inventoryItem.ValidateModel()) throw new FaultException<ServiceFault>(new ServiceFault(inventoryItem.CurrentErrors), new FaultReason(SysVars.InvalidFormat)); using (InventoryDAO dao = new InventoryDAO()) { return dao.SaveInventoryRecord(inventoryItem, identification.Token, identification.UserId); } }
public SmartCollection<InventoryItem> DoSearchInventory(string searchString, Collection<SearchItem> searchItems, Identification identification) { logger.Log(LogLevel.Trace, AppLib.GetCaller(logger)); using (InventoryDAO dao = new InventoryDAO()) { return dao.SearchInventory(searchString, searchItems, identification); } }
public int DoRemoveInventoryItemNote(int id, Identification identification) { logger.Log(LogLevel.Trace, AppLib.GetCaller(logger)); using (InventoryDAO dao = new InventoryDAO()) { return dao.RemoveInventoryNote(id, identification.UserId); } }
public InventoryModuleObject DoGetInventoryNotifiers(int id, Identification identification) { logger.Log(LogLevel.Trace, AppLib.GetCaller(logger)); using (InventoryDAO dao = new InventoryDAO()) { return dao.GetInventoryNotifiers(id); } }
public SmartCollection<InventoryItem> DoGetInventoryItemsRecent(int userId) { logger.Log(LogLevel.Trace, AppLib.GetCaller(logger)); using (InventoryDAO dao = new InventoryDAO()) { return dao.GetInventoryItemsRecentRecords(userId); } }
public SmartCollection<ClientNote> DoGetInventoryItemNotes(int parentId) { logger.Log(LogLevel.Trace, AppLib.GetCaller(logger)); using (InventoryDAO dao = new InventoryDAO()) { return dao.GetInventoryNotes(parentId); } }
public InventoryItem DoGetInventoryItem(int id, Guid userToken) { logger.Log(LogLevel.Trace, AppLib.GetCaller(logger)); using (InventoryDAO dao = new InventoryDAO()) { return dao.GetInventoryItemRecord(id); } }