Ejemplo n.º 1
0
        public EmployeeModel GetEmployee(int id)
        {
            EmployeeDTO dto = new EmployeeDTO();

            dto = EmployeeContext.GetEmployee(id);

            var modeltransfer = new EmployeeModel()
            {
                Id           = dto.Id,
                Name         = dto.Name,
                Availability = dto.Availability,
                Bar          = dto.Bar,
                Event        = dto.Events,
                Iets         = dto.Overig,
                MaxHours     = dto.MaxHours,
                Phone        = dto.PhoneNumber,
                PicUrl       = dto.PicUrl
            };

            return(modeltransfer);
        }