public IActionResult AddOrUpdate(string id) { var model = new PricingModel(); model.Published = true; if (!string.IsNullOrWhiteSpace(id)) { var entity = _pricingService.GetById(id); model = entity.ToViewModel(_pricingService, _documentService); } return(View(model)); }