public async Task <bool> Product_Command_DetailsExists(IProduct_Command_Details product_Command_Details) { string query = @"SELECT * FROM Product_Command_Details WHERE UID LIKE @UID OR UID_PRO_Command LIKE @UID"; var param = new { product_Command_Details.UID, product_Command_Details.UID_PRO_Command }; return(await _dataBaseManager.Find <Product_Command_Details>(query, param) != null); }
public async Task <bool> ModifyProduct_Command_Details(IProduct_Command_Details modifiedProduct_Command_Details) { var param = new { modifiedProduct_Command_Details.UID, modifiedProduct_Command_Details.PRO_Qte, modifiedProduct_Command_Details.Total_Price, modifiedProduct_Command_Details.UID_PRO, modifiedProduct_Command_Details.UID_PRO_Command, }; return(await _dataBaseManager.Modify("SP_UPDATE_Product_Command_Details", param)); }
public async Task <bool> AddProduct_Command_Details(IProduct_Command_Details product_Command_Details) { var param = new { product_Command_Details.UID, product_Command_Details.PRO_Qte, product_Command_Details.Total_Price, product_Command_Details.UID_PRO, product_Command_Details.UID_PRO_Command, }; return(await _dataBaseManager.Add("SP_ADD_Product_Command_Details", param)); }