public IActionResult UpdateTitleInline(string id, [FromForm] string text) { if (text != null) { var model = _titleService.GetModel(id); model.Text = text; _titleService.UpdateModel(model); return(Ok(model)); } return(BadRequest("Title text cannot be empty")); }