public void savePeopleAnalysis(CRM_KA_PeopleAnalysisModel entity) { objPeopleAnalysis = new CRM_KA_PeopleAnalysisRepository(); Mapper.CreateMap<CRM_KA_PeopleAnalysisModel, CRM_KA_PeopleAnalysis>(); CRM_KA_PeopleAnalysis objEntity = new CRM_KA_PeopleAnalysis(); objEntity = Mapper.Map(entity, objEntity); objPeopleAnalysis.Add(objEntity); }