public IActionResult ChangeRecordValue(ChangeEntityModel model) { if (ModelState.IsValid) { var record = _records.GetEntity(model.EntityId); if (record != null) { record.Value = model.Value; _records.UpdateEntity(record); _records.Save(); } } return(RedirectToAction("Board", new { id = model.BoardId })); }
public IActionResult ChangeColumnName(ChangeEntityModel model) { if (ModelState.IsValid) { var column = _columns.GetEntity(model.EntityId); if (column != null) { column.Name = model.Value; _columns.UpdateEntity(column); _columns.Save(); } } return(RedirectToAction("Board", new { id = model.BoardId })); }