public bool LoginAdmin(string emailToLookUp, string passwordToVerify) { bool allOk = false; using (proxyRef.AdminServiceClient adminProxy = new proxyRef.AdminServiceClient()) { allOk = adminProxy.LoginAdmin(emailToLookUp, passwordToVerify); } return(allOk); }
public clientRef.Admin CreateAdmin(clientRef.Admin adminToCreate) { proxyRef.Admin adminInServiceFormat = new ConvertDataAdmin().ConvertToServiceAdmin(adminToCreate); using (proxyRef.AdminServiceClient adminProxy = new proxyRef.AdminServiceClient()) { adminProxy.CreateAdmin(adminInServiceFormat); } return(adminToCreate); }