public DrinksModel Drinks_GetPrice(DrinksModel model) { DrinksModel dm = new DrinksModel(); using (IDbConnection connection = new System.Data.SqlClient.SqlConnection(GlobalConfig.CnnString("CarnivoreSteak"))) { var p = new DynamicParameters(); p.Add("@drink", model.Drinks); dm.Drinksprice = connection.Execute("dbo.spDiscount_GetPercent", p, commandType: CommandType.StoredProcedure); return(dm); } }
public DrinksModel Drinks_GetPrice(DrinksModel model) { throw new NotImplementedException(); }