public async Task UpdateProfileInfo(string firstName, string lastName, DateTime dateOfBirth, string countryCode, int playerType, double height, double weight) { var profileInfoChanged = new ProfileInfoChanged { CountryCode = countryCode, PlayerType = (PlayerType)playerType, FirstName = firstName, LastName = lastName, DateOfBirth = dateOfBirth, Weight = weight, Height = height }; await RaiseEvent(profileInfoChanged); }
public void Apply(ProfileInfoChanged @event) { FirstName = @event.FirstName; LastName = @event.LastName; DateOfBirth = @event.DateOfBirth; CountryCode = @event.CountryCode; Height = @event.Height; Weight = @event.Weight; PlayerType = @event.PlayerType; Version++; }