public void UpdateEvolvent(Evolvent oevl) { dbHelper db = new dbHelper(); int result = db.UpdateData(oevl.Id, oevl.FirstName, oevl.LastName, oevl.EmailID, oevl.PhoneNo, oevl.Status); }
//public Evolvent GetEvolventById(string id) //{ // var dt = new DataTable(); // dbHelper db = new dbHelper(); // dt=db. // if (dt.Rows.Count > 0) // { // var dr = dt.Rows[0]; // return new Employee // { // EmpNo = dr["EmpNo"].ToString(), // EmpName = dr["EmpName"].ToString(), // EmpSal = dr["EmpSal"].ToString(), // EmpDepNo = dr["EmpDepNo"].ToString() // }; // } // return null; //} public void AddEvolvent(Evolvent oevl) { dbHelper db = new dbHelper(); Boolean result = Convert.ToBoolean(db.InsertData(oevl.FirstName, oevl.LastName, oevl.EmailID, oevl.PhoneNo, oevl.Status)); }