コード例 #1
0
        public bool EmailExists(string email, int id)
        {
            users     foundUser = db.users.Where(u => u.listeners.listenerEmail == email).FirstOrDefault();
            employees foundEmp  = db.employees.Where(e => e.employeeEmail == email).FirstOrDefault();

            if (foundUser is null && foundEmp is null)
            {
                return(false);
            }
コード例 #2
0
 void showHostInfo(employees host)
 {
     FullName.Text  = host.employeeSurname + " " + host.employeeName + " " + host.employeePatronymic;
     BirthDate.Text = host.employeeDateOfBirth.ToString("dd.MM.yyyy");
     Position.Text  = host.positions.positionName;
     if (host.employeeEmail != null)
     {
         Email.Text = host.employeeEmail;
     }
     else
     {
         Email.Text = "отсутствуют";
     }
 }