public LeadEntity ConvertLeadModelToEntity(LeadModel newLeadModel)
        {
            LeadEntity newLeadEntity = new LeadEntity();

            newLeadEntity.LeadId       = newLeadModel.LeadId;
            newLeadEntity.LeadName     = newLeadModel.LeadName;
            newLeadEntity.TechnologyId = newLeadModel.TechnologyId;
            return(newLeadEntity);
        }
        public List <LeadModel> ConvertLeadEntityToModel(List <LeadEntity> leadEntities)
        {
            List <LeadModel> leadModels = new List <LeadModel>();

            foreach (var item in leadEntities)
            {
                LeadModel lead = new LeadModel();
                lead.LeadId       = item.LeadId;
                lead.LeadName     = item.LeadName;
                lead.TechnologyId = item.TechnologyId;
                leadModels.Add(lead);
            }
            return(leadModels);
        }