예제 #1
0
        public MainCoursesModel MainCourse_GetPrice(MainCoursesModel model)
        {
            MainCoursesModel dm = new MainCoursesModel();

            using (IDbConnection connection = new System.Data.SqlClient.SqlConnection(GlobalConfig.CnnString("CarnivoreSteak")))
            {
                var p = new DynamicParameters();
                p.Add("@main", model.Maincourse);

                dm.Mainprice = connection.Execute("dbo.spDiscount_GetPercent", p, commandType: CommandType.StoredProcedure);
                return(dm);
            }
        }
예제 #2
0
 public MainCoursesModel MainCourse_GetPrice(MainCoursesModel model)
 {
     throw new NotImplementedException();
 }