Ejemplo n.º 1
0
 public Acquirer GetAcquirerInfo(int acquirerId)
 {
   AcquirerTable acquirerTable=  db.AcquirerTables.SingleOrDefault(c => c.Id == acquirerId);
   Acquirer acquirer = new Acquirer()
   {
       Address=acquirerTable.Address,
       BinName=acquirerTable.BinName,
       City=acquirerTable.City,
       Latitude=acquirerTable.Latitude,
       Longitude=acquirerTable.Longitude,
       UserName=acquirerTable.UserName,
       Phone=acquirerTable.Phone    
   };
   return acquirer;
 }
Ejemplo n.º 2
0
 public string Register(Acquirer acquirer)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 3
0
 public List<Acquirer> GetAcquirer(int userId)
 {
     List<Acquirer> list_Acquirer = new List<Acquirer>();
     UserTable user = db.UserTables.SingleOrDefault(c => c.Id == userId);
     foreach (AcquirerTable item in db.AcquirerTables)
     {
         if (item.City == user.City)
         {
             Acquirer acquirer = new Acquirer()
             {
                 Address = item.Address,
                 BinName=item.BinName,
                 Latitude = item.Latitude,
                 Longitude = item.Longitude,
                 Phone = item.Phone,
                 UserName= item.UserName,
                 AcquirerId=item.Id
             };
             list_Acquirer.Add(acquirer);
         }
     }
     return list_Acquirer;
 }