public void Execute(TheatreDTO request) { validator.ValidateAndThrow(request); context.Theatres.Add(new Domain.Theatre { TheatreName = request.TheatreName }); context.SaveChanges(); }
public void Post( [FromBody] TheatreDTO dto, [FromServices] ICreateTheatreCommand command) { executor.ExecuteCommand(command, dto); }