public ActionResult EditNomenclature(int?id) { if (id == null) { return(View(_goodsService.CreateNomenclature())); } Nomenclature nom = _goodsService.GetNomenclatureById(id); if (nom == null) { return(HttpNotFound()); } return(View(nom)); }