public BE.Client GetClientByClientGuid(Guid clientGuid) { try { DA.ClientGateway gateway = new DA.ClientGateway(); BE.Client result = new BE.Client(); result = gateway.GetByPK(clientGuid).ToBusinessEntity(); return result; } catch (DataAccess.DataAccessException) { return null; } }
public static BE.Client ToBusinessEntity(this DC.Client dcClient) { BE.Client clientResult = new BE.Client() { ClientGuid = dcClient.ClientGuid, ClientID = dcClient.ClientID, ClientName = dcClient.ClientName, PhoneNumber = dcClient.PhoneNumber, Email = dcClient.Email, Address = dcClient.Address, CityStateZipGuid = dcClient.CityStateZipGuid, PaymentInfoGuid = dcClient.PaymentInfoGuid, FederatedID = dcClient.FederatedID, FederatedKey = dcClient.FederatedKey, FederatedIDProvider = dcClient.FederatedIDProvider, Username = dcClient.Username, HashedPassword = dcClient.HashedPassword, }; return clientResult; }
public static BE.Client ToBusinessEntity(this DA.Client daClient) { BE.Client clientResult = new BE.Client() { ClientGuid = daClient.ClientGuid, ClientID = daClient.ClientID, ClientName = daClient.ClientName, PhoneNumber = daClient.PhoneNumber, Email = daClient.Email, Address = daClient.Address, CityStateZipGuid = daClient.CityStateZipGuid, PaymentInfoGuid = daClient.PaymentInfoGuid, FederatedID = daClient.FederatedID, FederatedKey = daClient.FederatedKey, FederatedIDProvider = daClient.FederatedIDProvider, Username = daClient.Username, HashedPassword = daClient.HashedPassword, AccountPaused = daClient.AccountPaused, IsWaiverd = daClient.IsWaiverd, FreeDays = daClient.FreeDays, Credits = daClient.Credits, IsSuspended = daClient.IsSuspended, IsFlagged=daClient.IsFlagged, IsActive = daClient.IsActive }; return clientResult; }