public async Task <eSWIS.Logic.Profiles.Container.Company> Get(string BizRegID) { eSWIS.Logic.Profiles.Container.Company list = new eSWIS.Logic.Profiles.Container.Company(); try { var repo = new Logic.CustomerLogic(); list = await repo.GetCustomer(BizRegID); } catch (Exception ex) { var temp = ex.ToString(); } return(ObjectMapper.Map <eSWIS.Logic.Profiles.Container.Company>(list)); }
public Task <eSWIS.Logic.Profiles.Container.Company> GetCustomer(string bizRegID) { eSWIS.Logic.Profiles.Container.Company list = new eSWIS.Logic.Profiles.Container.Company(); try { string conn = _appConfiguration.GetConnectionString(PlexformConsts.ESWISConnectionString); eSWIS.Logic.Profiles.Company obj = new eSWIS.Logic.Profiles.Company(conn); list = obj.GetCompany(bizRegID); } catch (Exception ex) { var temp = ex.ToString(); } return(Task.FromResult(list)); }
public async Task <eSWIS.Logic.Profiles.Container.Company> GetCompany(string id) { eSWIS.Logic.Profiles.Container.Company list = new eSWIS.Logic.Profiles.Container.Company(); try { var repo = new Plexform.Logic.FooLogic(); list = await repo.GetCompanyAsync(id); } catch (Exception ex) { var temp = ex.ToString(); } return(ObjectMapper.Map <eSWIS.Logic.Profiles.Container.Company>(list)); }
public Task <eSWIS.Logic.Profiles.Container.Company> GetCompanyAsync(string id) { eSWIS.Logic.Profiles.Container.Company list = new eSWIS.Logic.Profiles.Container.Company(); try { string conn = _appConfiguration.GetConnectionString(PlexformConsts.ESWISConnectionString); eSWIS.Logic.Profiles.Company obj = new eSWIS.Logic.Profiles.Company(conn); list = obj.GetCompany(id); //eSWIS.Logic.CodeMaster.Container.Unit unit = new eSWIS.Logic.CodeMaster.Container.Unit() //{ // Active = 1, // CreateBy = "", // CreateDate = DateTime.Now, // Flag = 1, //}; //list.Add(unit); } catch (Exception ex) { var temp = ex.ToString(); } return(Task.FromResult(list)); }