Exemplo n.º 1
0
        public async Task <ActionResult <NumberModel[]> > AddOrUpdate([FromBody] NumberModel model)
        {
            if (model == null || string.IsNullOrEmpty(model.Id))
            {
                return(BadRequest("Number not posted"));
            }
            await numberService.AddOrUpdate(model);

            return(Ok(Get()));
        }