Ejemplo n.º 1
0
        public string updatedelete(string id, string obj)
        {
            string      rs    = "";
            datacontext db    = new datacontext();
            string      table = "";

            if (obj == "customer")
            {
                table = "customer";
            }
            else if (obj == "ItemList")
            {
                table = "ItemList";
            }
            else if (obj == "house")
            {
                table = "warehouse";
            }
            else if (obj == "employer")
            {
                table = "employee";
            }
            rs = db.updatecolumndelete(id, table);
            return(rs);
        }