public object GetDistributorCodeByPhotoId(string pid)
 {
     try
     {
         return(_distributorRepository.GetDistributorCodeByPhotoId(pid));
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
         throw;
     }
 }