Beispiel #1
0
        public IActionResult UpdateAlertInline(string id, [FromForm] string text)
        {
            if (text != null)
            {
                var model = _alertService.GetModel(id);
                model.Text = text;

                _alertService.UpdateModel(model);

                return(Ok(model));
            }

            return(BadRequest("Alert text cannot be empty"));
        }