Exemplo n.º 1
0
        public async Task <ActionResult> CreateFunction([FromBody] CreateFunctionCommand request)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }
            var result = await Mediator.Send(request);

            return(result == null ? (ActionResult)BadRequest() : Ok(result));
        }
Exemplo n.º 2
0
 public override T VisitCreateFunctionCommand(CreateFunctionCommand node)
 {
     throw new NotImplementedException();
 }