You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
468 B
18 lines
468 B
using BowlingService.Interfaces;
|
|
using DTOs;
|
|
using GraphQL_Project.Record;
|
|
|
|
namespace GraphQL_Project.Data;
|
|
|
|
public class Mutation
|
|
{
|
|
public async Task<JoueurAddedPayload> AddjoueurAsync(AddJoueurInput input, [Service] IJoueurService joueurService)
|
|
{
|
|
JoueurDTO joueurDto = new JoueurDTO
|
|
{
|
|
Pseudo = input.Pseudo
|
|
};
|
|
var result = await joueurService.Add(joueurDto);
|
|
return new JoueurAddedPayload(result);
|
|
}
|
|
} |