using System; using System.Collections.Generic; using System.Linq; using System.Web; using OSS.Models; using OSS.Repositories; namespace OSS.Repositories { public class CompanyRepository { public CompanyProfileExternal CreateLocation() { var RRepo = new RegionRepository(); var DRepo = new DistrictRepository(); var WAll = new WardRepository(); var officeRepsoitory = new CompanyProfileExternal { ListofDistricts = DRepo.GetDistricts(), ListofRegions = RRepo.GetRegions(), ListofWards = WAll.GetWard() }; return officeRepsoitory; } } }