コード例 #1
0
        public bool AddGL(GLViewModel _m)
        {
            string sqlQuery = "Insert Into gl (gl_name,gl_code,gl_master_type) select '" + _m.gl_name + "','" + _m.gl_code + "','" + _m.gl_master_type + "';";


            var conn = db.ConnStrg();

            int rowsAffected = conn.Execute(sqlQuery);

            return(true);
        }
コード例 #2
0
        public IHttpActionResult AddGL([FromBody] GLViewModel m)
        {
            var result = _generalledgerservices.AddGL(m);

            return(Ok(result));
        }