コード例 #1
0
        public IList<CRM_KA_BrandModel> getAllBrandByCustomer(string CustomerID)
        {
            objKABrand = new CRM_KA_BrandRepository();

            Mapper.CreateMap<CRM_KA_Brand, CRM_KA_BrandModel>();

            IList<CRM_KA_Brand> objEntity = objKABrand.GetAll(x => x.CustomerID.Equals(CustomerID)).ToList();

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

            objResult = Mapper.Map(objEntity, objResult);

            return objResult;
        }