public async Task <IActionResult> DeleteConfirmed(int id)
        {
            var servicetype = await _serviceTypeRepository.GetByIdAsync(id);

            await _serviceTypeRepository.DeleteAsync(servicetype);

            return(RedirectToAction(nameof(Index)));
        }