Esempio n. 1
0
        public async Task <IActionResult> Post([FromBody] GlobalModel model)
        {
            try
            {
                await _globalService.AddGlobal(model);

                return(Ok(true));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex));
            }
        }