sp-dev-fx-webparts/samples/react-kiota-custom-api-client/TeamifiedApi/Teams/Endpoints/ProvisionTeam.cs

18 lines
420 B
C#
Raw Normal View History

using MediatR;
using Teamified.Api.Teams.Commands.ProvisionTeam;
namespace Teamified.Api.Teams.Endpoints
{
public class ProvisionTeam
{
public static async Task<IResult> Handle(
IMediator mediator,
ProvisionTeamCommand command)
{
var newTeamLocation = await mediator.Send(command);
return Results.Accepted(newTeamLocation);
}
}
}