public IActionResult CreateUpdate(int?id) { if (id != null) { var category = _proxy.Get(id.Value); return(View(category)); } return(View()); }