public async Task <ActionResult <DetailModel> > GetByName(string detailName) { var detail = _detailService.FindByName(detailName); return(View(detail)); }