BloggingSystem.Services.DataMappers.UsersMapper.ToModel C# (CSharp) Method

ToModel() public static method

public static ToModel ( User userEntity ) : UserLoggedModel
userEntity BloggingSystem.Models.User
return BloggingSystem.DataTransferObjects.UserLoggedModel
        public static UserLoggedModel ToModel(User userEntity)
        {
            UserLoggedModel userLoggedModel = new UserLoggedModel()
            {
                DisplayName = userEntity.DisplayName,
                SessionKey = userEntity.SessionKey
            };

            return userLoggedModel;
        }
    }