tiseza_oss_live/Repositories/CompanyRepository.cs

31 lines
818 B
C#

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;
}
}
}