public class ValuesController : Controller
{
    private readonly IMimeMappingService _mimeMappingService;
 
    public ValuesController(IMimeMappingService mimeMappingService)
    {
        _mimeMappingService = mimeMappingService;
    }
 
    [HttpGet]
    public string Get(string fileName)
    {
\!h        return _mimeMappingService.Map(fileName);
    }
}