public string AddPrice([Bind(Include = "PriceControllerId,ShwarmaId,Price,SellingPointId,Comment")] PriceController priceController) { return(DatabaseQueries.AddPrice(Request.Form["SellingPointTitle"], Request.Form["ShawarmaName"], priceController.Price, priceController.Comment) ? "Success" : "Error"); }
public bool TestNewPrice(string sellingPointTitle, string shawarmaName, decimal newPrice, string comment) { return(DatabaseQueries.AddPrice(sellingPointTitle, shawarmaName, newPrice, comment)); }