public void deletePeopleAnalysis(Guid id) { objPeopleAnalysis = new CRM_KA_PeopleAnalysisRepository(); CRM_KA_PeopleAnalysis entity = objPeopleAnalysis.GetSingle(x => x.id.Equals(id)); objPeopleAnalysis.Delete(entity); }
public void updatePeopleAnalysis(CRM_KA_PeopleAnalysisModel entity) { objPeopleAnalysis = new CRM_KA_PeopleAnalysisRepository(); Mapper.CreateMap<CRM_KA_PeopleAnalysisModel, CRM_KA_PeopleAnalysis>(); CRM_KA_PeopleAnalysis result = objPeopleAnalysis.GetSingle(x => x.id.Equals(entity.id)); result = Mapper.Map(entity, result); objPeopleAnalysis.Update(result); }
public CRM_KA_PeopleAnalysisModel getPeopleAnalysisId(Guid id) { objPeopleAnalysis = new CRM_KA_PeopleAnalysisRepository(); Mapper.CreateMap<CRM_KA_PeopleAnalysis, CRM_KA_PeopleAnalysisModel>(); var entity = objPeopleAnalysis.GetSingle(x => x.id.Equals(id)); CRM_KA_PeopleAnalysisModel result = new CRM_KA_PeopleAnalysisModel(); result = Mapper.Map(entity, result); return result; }