Пример #1
0
        public List <MdlPartner> GetPartnersofOrganizationUsingFileNo(string fileNo)
        {
            var query = _dbFirms.usp_GetPartnersofOrganizationUsingFileNo(fileNo, true);

            List <MdlPartner> list = new List <MdlPartner>();

            foreach (var item1 in query)
            {
                list.Add(new MdlPartner()
                {
                    OrgRegNo         = item1.OrgRegNo,
                    PartnerName      = item1.PartnerName,
                    PartnerShare     = item1.PartnerShare,
                    PartnerCNIC      = item1.NIC,
                    PartnerAddress   = item1.PartnerAddress,
                    PartnerContactNo = item1.PartnerContactNo,
                    PartnerMobileNo  = item1.PartnerMobileNo,
                    IsActive         = item1.isActive
                });
            }

            return(list);
        }