public static UserScore New(CreateOrUpdateUserScore createOrUpdateUserScore) { return(new( createOrUpdateUserScore.OrganizationGuid, createOrUpdateUserScore.UserGuid, createOrUpdateUserScore.Score)); }
public void Update(CreateOrUpdateUserScore createOrUpdateUserScore) { if (OrganizationGuid != createOrUpdateUserScore.OrganizationGuid || UserGuid != createOrUpdateUserScore.UserGuid) { throw new ArgumentException("Wrong Guids for user score", nameof(createOrUpdateUserScore)); } Score = createOrUpdateUserScore.Score; }