public void deleteCompetitor(Guid id)
        {
            objKACompetitor = new CRM_KA_CompetitorNameRepository();

            CRM_KA_CompetitorName competitor = objKACompetitor.GetSingle(x => x.id.Equals(id));

            objKACompetitor.Delete(competitor);
        }
        public CRM_KA_CompetitorModel getCompetitorById(Guid id)
        {
            objKACompetitor = new CRM_KA_CompetitorNameRepository();

            Mapper.CreateMap<CRM_KA_CompetitorName, CRM_KA_CompetitorModel>();

            var entity = objKACompetitor.GetSingle(x => x.id.Equals(id));

            CRM_KA_CompetitorModel result = new CRM_KA_CompetitorModel();
            result = Mapper.Map(entity, result);

            return result;
        }
        public void saveCompetitor(CRM_KA_CompetitorModel entity)
        {
            objKACompetitor = new CRM_KA_CompetitorNameRepository();

            CRM_KA_CompetitorName competitor = new CRM_KA_CompetitorName();

            competitor.id = entity.id;
            competitor.CustomerID = entity.CustomerID;
            competitor.CompetitorName = entity.CompetitorName;

            objKACompetitor.Add(competitor);
        }
        public IList<CRM_KA_CompetitorModel> getAllCompetitorByCustomer(string CustomerID)
        {
            objKACompetitor = new CRM_KA_CompetitorNameRepository();

            Mapper.CreateMap<CRM_KA_CompetitorName, CRM_KA_CompetitorModel>();

            IList<CRM_KA_CompetitorName> objEntity = objKACompetitor.GetAll(x => x.CustomerID.Equals(CustomerID)).ToList();

            IList<CRM_KA_CompetitorModel> objResult = new List<CRM_KA_CompetitorModel>();

            objResult = Mapper.Map(objEntity, objResult);

            return objResult;
        }