public IActionResult Delete(int id) => Json(new { n = factory.DeleteAndSave(id) });
public IActionResult Delete(int id) { var n = factory.DeleteAndSave(id); return(Json(new { n })); }