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; }
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; }