public virtual async Task<IActionResult> Get(string idOrName) { if (int.TryParse(idOrName, out int id)) return Get(await materialsPresenter.GetAsync(id)); else return Get(await materialsPresenter.GetAsync(idOrName)); }