private Upw BuildUpwObj() { if (string.IsNullOrWhiteSpace(txtClientKey.Text)) { var upwRecord = new Upw() { ClientKey = txtClientKey.Text, ClientLocationKey = txtClientLocationKey.Text }; return(upwRecord); } return(null); }
public async Task <IEnumerable <Upw> > GetAutoAgentUserName(Upw upwRecord) { IAsyncRepository <Upw> upwRepo = null; try { upwRepo = new UpwAsyncRepository(_db); return(await upwRepo.Find(upwRecord)); } catch (Exception) { throw; } }