public static List <InsuranceCmpList> GetInsuranceCmpList(SessionDataBLL Obj) { using (var DbContext = new BSSDBEntities()) { List <InsuranceCmpList> InsuranceCmpList = null; var ReqData = DbContext.SP_GetInsuranceCmpList(Obj.DealerID, Obj.AccountId).ToList(); InsuranceCmpList = ReqData.Select(x => new InsuranceCmpList { InsuranceCompanyId = x.InsuranceCompanyId, CompanyName = x.CompanyName, CompanyCode = x.CompanyCode, IsDeleted = x.IsDeleted, AccountId = x.AccountId, DealerId = x.DealerId }).ToList(); return(InsuranceCmpList); } }