public static async Task <ConfigurationReadModel> GetById(Guid id) { ConfigurationDetailQuery detailQuery = new ConfigurationDetailQuery { Id = id }; ConfigurationReadModel configuration = await Mediator.Send(detailQuery); return(configuration); }
public async Task <ActionResult <ConfigurationReadModel> > Get([FromQuery] ConfigurationDetailQuery query) { ConfigurationReadModel configuration = await _mediator.Send(query); return(configuration); }