public void updateKeyAccount(KeyAccountModel entity)
        {
            objKA = new CRM_KeyAccountRepository();
            Mapper.CreateMap<KeyAccountModel, CRM_KeyAccount>();
            CRM_KeyAccount ka = objKA.GetSingle(x => x.CustomerID.Equals(entity.CustomerID));

            ka = Mapper.Map(entity, ka);

            objKA.Update(ka);
        }
        public KeyAccountModel getKeyAccountByCustomer(string CustomerID)
        {
            objKA = new CRM_KeyAccountRepository();

            Mapper.CreateMap<CRM_KeyAccount, KeyAccountModel>();

            CRM_KeyAccount objEntity = objKA.GetSingle(x=>x.CustomerID.Equals(CustomerID));

            KeyAccountModel objResult = new KeyAccountModel();

            objResult = Mapper.Map(objEntity, objResult);

            return objResult;
        }