public string RestockBasket([FromBody] JToken json_value) { BasketDAL basketDAL = new BasketDAL(); int basket_id = int.Parse(json_value["order_id"].ToString()); return(basketDAL.RestockBasket(basket_id)); }
public void GetBasketTest() { BasketDAL dal = new BasketDAL(ConfigurationManager.ConnectionStrings["IMDB"].ConnectionString); BasketDTO result = new BasketDTO(dal); Assert.IsTrue(result.GetBasket(5).BasketID == 5, "Cannot find the item"); }
public void SetBasketLocation([FromBody] BasketLocation basket_location) { BasketDAL basket = new BasketDAL(); basket.UpdateBasketLocation(basket_location.basket_id, basket_location.beacon_id); }