private Task AddPortalUserWithLocationId(PortalUserAndLocationId portalUser, IDbConnection _iAgentDevDb) { IAsyncRepository <PortalUserAndLocationId> portalUserRepo = new PortalUserDataRepo(_iAgentDevDb); try { return(portalUserRepo.AddAsync(portalUser)); } catch (SqlException) { throw; } }
private PortalUserAndLocationId BuildPortalUserData() { var portalUserData = new PortalUserAndLocationId() { Portal_Id = int.Parse(ddlPortalId.Text), Username = txtUsername.Text.EncryptStringBase64(), Password = txtPassword.Text.EncryptStringBase64(), DateExpired = DateTime.MinValue, IsEnabled = true, IsExpired = false, Location_Id = int.Parse(txtLocationId.Text) }; if (int.Parse(ddlPortalId.Text).Equals(3) || int.Parse(ddlPortalId.Text).Equals(12)) { portalUserData.AllowsConcurrent = false; } else { portalUserData.AllowsConcurrent = true; } return(portalUserData); }
public Task UpdateAsync(PortalUserAndLocationId entity) { throw new NotImplementedException(); }
public Task <IEnumerable <PortalUserAndLocationId> > Find(PortalUserAndLocationId obj) { throw new NotImplementedException(); }