private void btnAdd_Click(object sender, EventArgs e) { try { using (LogInService service = new LogInService()) { LogIn logIn = new LogIn() { Login_id = this.LoginId, Pass_word = this.Password, User_name = this.UserName, Faculty_id = "B66750", Student_id = "J77896" }; service.CrateObject(logIn); MessageBox.Show(this, "Usuario Usuario Creado Conrrectamente", "CSE_DEPT", MessageBoxButtons.OK, MessageBoxIcon.Information); } } catch (Exception ex) { throw new Exception(ex.Message); } }