public RegistrationInfo GetRegistrationInfo(int clientId) { Client client = Clients.Where(c => c.Id == clientId).ToList()[0]; ClientSoftwareProfile clientSoftwareProfile = ClientInfos.Where(i => i.Client.Id == client.Id).FirstOrDefault(); RegistrationInfo regInfo = new RegistrationInfo(); regInfo.ClientId = client.Id; regInfo.FirstRegisteredDate = (DateTime)client.DateRegistered; regInfo.RegisteredTo = client.ClientName; return(regInfo); }
public RegistrationInfo RegisterProduct(string productCode) { ClientSoftwareProfile clientSoftwareProfile = ClientInfos.Where(c => c.ProductCode == productCode).ToList()[0]; Client client = Clients.Where(c => c.Id == clientSoftwareProfile.Client.Id).FirstOrDefault(); RegistrationInfo regInfo = new RegistrationInfo(); regInfo.ClientId = client.Id; regInfo.FirstRegisteredDate = (DateTime)client.DateRegistered; regInfo.RegisteredTo = client.ClientName; return(regInfo); }
public DateTime?GetRenewalDate(ClientInfo clientInfo) { ClientSoftwareProfile clientSoftwareProfile = ClientInfos.Where(i => i.Client.Id == clientInfo.ClientId).ToList()[0]; return(clientSoftwareProfile.SubRenewalDate); }