Example #1
0
        public List <MdlPartner> GetAllPartnerList()
        {
            //var query = _dbFirms.PARTNERs.ToList();
            var query = _dbFirms.usp_GetPartnersofOrgType(1);
            var list  = new List <MdlPartner>();

            foreach (var obj in query)
            {
                list.Add(new MdlPartner
                {
                    PartnerID         = obj.PartnerID,
                    PartnerName       = obj.PartnerName,
                    PartnerCNIC       = obj.PartnerCNIC,
                    PartnerONIC       = obj.PartnerONIC,
                    PartnerShare      = obj.PartnerShare,
                    PartnerAddress    = obj.PartnerAddress,
                    PartnerContactNo  = obj.PartnerContactNo,
                    PartnerMobileNo   = obj.PartnerMobileNo,
                    PartnerCitizenNo  = obj.PartnerCitizenNo,
                    PartnerPassportNo = obj.PartnerPassportNo,
                    OrgDoc_ID         = obj.OrgDoc_ID,
                    EnterByUser_ID    = obj.EnterByUser_ID,
                    NICImagePath      = obj.NICImagePath,
                    Designation_ID    = obj.Designation_ID,
                    Occupation        = obj.Occupation,
                    IsActive          = obj.IsActive
                });
            }
            return(list);
        }