示例#1
0
        public static List<Employee> CreateEmployees()
        {
            var random = new Random();
            List<Employee> employees = new List<Employee>();
            for (int i = 0; i < 25; i++)
            {
                string picturePath = PicturePath[random.Next(PicturePath.Count - 1)];
                string name = Name[random.Next(Name.Count - 1)];
                string title = Title[random.Next(Title.Count - 1)];

                Employee employee = new Employee() { ImgUrl = picturePath, FirstName = name, Title = title};
                employees.Add(employee);
            }
            return employees;
        }
示例#2
0
 public EmployeeViewModel(Employee employee)
 {
     EmployeeId = employee.EmployeeId;
     FirstName = employee.FirstName;
     SurName = employee.SurName;
     City = employee.City;
     Location = employee.Location;
     Email = employee.Email;
     HomePhone = employee.HomePhone;
     MobilePhone = employee.MobilePhone;
     SkypeAddress = employee.SkypeAddress;
     ImgUrl = employee.ImgUrl;
     Title = employee.Title;
     Company = employee.Company;
     Skill = employee.Skill;
     Project = employee.Project;
     Info = employee.Info;
 }