Exemplo n.º 1
0
 public GetToDoListMethod(
     GetToDoList Cdo,
     GetToDoListMethods Method,
     GetToDoList_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
        public async Task <IActionResult> GetToDoList([FromRoute] GetToDoList query)
        {
            var response = await _mediator.Send(query);

            return(response.Data != null?Ok(response.Data) : NotFound());
        }