public Task <eSWIS.Logic.UsrProfile.Container.USRPROFILE> Authenticate(string userName, string password = "") { eSWIS.Logic.UsrProfile.Container.USRPROFILE usrProfile = new eSWIS.Logic.UsrProfile.Container.USRPROFILE(); try { string conn = _appConfiguration.GetConnectionString(PlexformConsts.ESWISConnectionString); eSWIS.Logic.UsrProfile.UsrProfile obj = new eSWIS.Logic.UsrProfile.UsrProfile(conn); usrProfile = obj.GetUserProfile(userName, password); } catch (Exception ex) { var temp = ex.ToString(); } return(Task.FromResult(usrProfile)); }
public Task <bool> Insert(eSWIS.Logic.UsrProfile.Container.USRPROFILE cont) { var res = false; try { string conn = _appConfiguration.GetConnectionString(PlexformConsts.ESWISConnectionString); eSWIS.Logic.UsrProfile.UsrProfile obj = new eSWIS.Logic.UsrProfile.UsrProfile(conn); res = obj.Insert(cont); } catch (Exception ex) { var temp = ex.ToString(); } return(Task.FromResult(res)); }
public async Task <bool> Update(eSWIS.Logic.UsrProfile.Container.USRPROFILE input) { bool res = false; try { var repo = new Plexform.Logic.UserProfileLogic(); res = await repo.Update(input); } catch (Exception ex) { var temp = ex.ToString(); } return(ObjectMapper.Map <bool>(res)); }