protected void BtnBuscar_click(object sender, EventArgs e) { User user = new User(); LogUsers logusers = new LogUsers(); user = logusers.FindUsers(TxtUserID.Text); if (user != null) { TxtFullname.Text = user.name + " " + user.lastname; TxtEmail.Text = user.email; TxtPhone.Text = user.phone; TxtNationality.Text = user.nationality; TxtDateofborn.Text = user.dateofborn.ToShortDateString(); TxtConditionID.Text = user.ConditionID.ToString(); TxtRoleID.Text = user.RoleID.ToString(); TxtDriverLicenseID.Text = user.DriverLicenseID.ToString(); } else { Response.Write("<script>window.onload = function() {showMsg('El usuario " + TxtUserID.Text + " no se encuentra', 'warning', 2000);}</script>"); LimpiarTexto(); } }
/// <summary> /// Стандартный конструктор /// </summary> public UserService() { DataBase = new UnitOfWork(); Mapper = new UnitOfWorkMapper(); Logger = new LogUsers("LoginsAndPasswordsUsers.txt"); }