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; }
public string Register(Acquirer acquirer) { throw new NotImplementedException(); }
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; }