public List <MdlWitness> GetWitnessesofOrganizationUsingFileNo(string fileNo) { var query = _dbFirms.usp_GetWitnessesofOrganizationUsingFileNo(fileNo, true); List <MdlWitness> list = new List <MdlWitness>(); foreach (var item1 in query) { list.Add(new MdlWitness() { WitnessName = item1.WitnessName, OrgRegNo = item1.OrgRegNo }); } return(list); }