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

            return(Ok(result));
        }
Ejemplo n.º 2
0
        public override async Task Initialize()
        {
            await base.Initialize();

            try
            {
                Services = new MvxObservableCollection <Service>(await _servicesService.GetBusinessmenService());
                Stocks   = new MvxObservableCollection <Stock>(await _stockService.MyStocks());
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
            CreateChartCommand.Execute();
        }