public ClientResponse FindProductInInventory(string q, int limit) { return new ClientResponse(() => { using (var manager = new ProductManager(null)) return manager.SearchProductInInventory(User.Identity.UserId, q, limit).ToArray(); }); }
public ClientResponse FindProductInInventory(string q, int limit) { return new ClientResponse(() => { using (var manager = new ProductManager(null)) return manager.SearchProductInInventory(User.Identity.UserId, q, limit).ToArray(); }); }