public async Task <Player> Get(Guid id, string name) { //Assignment 5.2 if (string.IsNullOrEmpty(name) == false) { return(await _processor.GetPlayerByName(name)); } return(await _processor.Get(id)); }
public async Task <Player> Get(Guid id) { return(await _processor.Get(id)); }