private bool MaterialDetailsExists(int id)
 {
     return(_materialDetailsRepository.Any(id));
 }