public async Task <Detail> GetDetailById(int id) { return(await _detailsRepository.GetDetailById(id).ConfigureAwait(false)); }