示例#1
0
        public void AdminAddApplication()
        {
            CtrAdmin ctrAdminObj = new CtrAdmin();
            DataSet ds = ctrAdminObj.GetTableData("Applications");

            DataRow dr = ds.Tables[0].NewRow();
            dr["StudentEmail"] = "*****@*****.**";
            dr["FlatId"] = 75;
            ds.Tables[0].Rows.Add(dr);

            ctrAdminObj.UpdateApplications(ds);
        }
示例#2
0
        public bool AdminUpdateApplications(DataSet ds)
        {
            ctrAdminObj = new CtrAdmin();

            Console.WriteLine();
            Console.WriteLine("AdminUpdateApplications() " + GetExecutionThreadTime());

            return ctrAdminObj.UpdateApplications(ds);
        }