Ejemplo n.º 1
0
        public async Task <bool> ModifyProduct_Command(IProduct_Command modifiedProduct_Command)
        {
            var param = new
            {
                modifiedProduct_Command.UID,
                modifiedProduct_Command.Date,
                modifiedProduct_Command.UID_Supplier
            };

            return(await _dataBaseManager.Modify("SP_UPDATE_Product_Command", param));
        }
Ejemplo n.º 2
0
        public async Task <bool> Product_CommandExists(IProduct_Command product_Command)
        {
            string query = @"SELECT * FROM Product_Command WHERE [Date] LIKE @date AND UID_Supplier LIKE @UID_Supplier";
            var    param = new
            {
                date = product_Command.Date.ToShortDateString(),
                product_Command.UID_Supplier
            };

            return(await _dataBaseManager.Find <Product_Command>(query, param) != null);
        }
Ejemplo n.º 3
0
        public async Task <bool> AddProduct_Command(IProduct_Command product_Command)
        {
            var param = new
            {
                product_Command.UID,
                product_Command.Date,
                product_Command.UID_Supplier
            };

            return(await _dataBaseManager.Add("SP_ADD_Product_Command", param));
        }