private void ViewEditdata(int adminId) { var adminDto = AdminDataAccess.GetAdminInfoById(adminId); if (adminDto != null) { this.adminDto = adminDto; textBoxFName.Text = adminDto.FirstName; textBoxLName.Text = adminDto.LastName; textBoxEmail.Text = adminDto.Email; textBoxMobile.Text = adminDto.Mobile; textBoxUName.Text = adminDto.UserName; } return; }