예제 #1
0
        public static BusinessLayer.BusinessObjects.Player ToBusinessPlayer(this DataModels.Player player)
        {
            var businessModel = new BusinessLayer.BusinessObjects.Player
            {
                ID = player.ID,
                Forename = player.Forename,
                Lastname = player.Lastname,
                Nickname = player.Nickname,
                Email = player.Email,
                Wins = player.Wins,
                Losts = player.Losts
            };

            return businessModel;
        }
예제 #2
0
        public static BusinessLayer.BusinessObjects.Player ToBusinessPlayer(this DataModels.Player player)
        {
            var businessModel = new BusinessLayer.BusinessObjects.Player
            {
                ID       = player.ID,
                Forename = player.Forename,
                Lastname = player.Lastname,
                Nickname = player.Nickname,
                Email    = player.Email,
                Wins     = player.Wins,
                Losts    = player.Losts
            };

            return(businessModel);
        }