public virtual async Task <ActionResult> Editor(int?id) { if (id != null) { var record = await _taxesService.FindByIdAsync(id.Value); if (record != null) { return(View(await _taxModelFactory.PrepareTaxModelAsync(record))); } } return(View(await _taxModelFactory.PrepareTaxModelAsync(null))); }