예제 #1
0
        public void AddFeedback(feedbackPackerModel cs)
        {
            // var query = "insert into *  feedback";
            SqlCommand com = new SqlCommand("f_Cus_Add", con);

            com.CommandType = CommandType.StoredProcedure;
            com.Parameters.AddWithValue("@feedbackPacker", cs.feedbackPacker);
            con.Open();
            com.ExecuteNonQuery();
            con.Close();
        }
예제 #2
0
        public string Post([FromBody] feedbackPackerModel cs)
        {
            db dblyer = new db();



            try
            {
                dblyer.AddFeedback(cs);
                return("Success");
            }
            catch (Exception)
            {
                return("Something went wrong");
            }
        }