/// <summary> /// Get Event Management Client /// </summary> public EventManagementClient GetEventManagementClient() { if (_eventManagementClient == null) { _eventManagementClient = new EventManagementClient(_credentials, _httpClient); } return(_eventManagementClient); }
public void Add(EventManagementClient eventManagementClient, string UserName, int UserId, int concernId) { var dateTime = DateTime.Now; eventManagementClient.CreationDate = dateTime; eventManagementClient.ModificationDate = dateTime; eventManagementClient.CreatorId = UserId; eventManagementClient.IsDelete = 0; eventManagementClient.ConcernId = concernId; _context.EventManagementClients.Add(eventManagementClient); _context.SaveChanges(); }
public void Update(int ClientId, EventManagementClient eventManagementClient, string UserName, int UserId) { var Client = EventClientById(ClientId); var dateTime = DateTime.Now; eventManagementClient.ModificationDate = dateTime; eventManagementClient.ModifierId = UserId; Client.AccountHeadId = eventManagementClient.AccountHeadId; Client.ClientAddress = eventManagementClient.ClientAddress; Client.ClientContactInfo = eventManagementClient.ClientContactInfo; Client.ClientNameAR = eventManagementClient.ClientNameAR; Client.ClientNameEN = eventManagementClient.ClientNameEN; Client.TaxRegNumber = eventManagementClient.TaxRegNumber; _context.SaveChanges(); }