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); }
public bool AdminUpdateApplications(DataSet ds) { ctrAdminObj = new CtrAdmin(); Console.WriteLine(); Console.WriteLine("AdminUpdateApplications() " + GetExecutionThreadTime()); return ctrAdminObj.UpdateApplications(ds); }