예제 #1
0
 public static Company GetCompanyByID(int id)
 {
     Company company = new Company();
     SqlCompanyProvider sqlCompanyProvider = new SqlCompanyProvider();
     company = sqlCompanyProvider.GetCompanyByID(id);
     return company;
 }
예제 #2
0
 public static List<Company> GetAllCompanies()
 {
     List<Company> companies = new List<Company>();
     SqlCompanyProvider sqlCompanyProvider = new SqlCompanyProvider();
     companies = sqlCompanyProvider.GetAllCompanies();
     return companies;
 }
예제 #3
0
파일: CompanyManager.cs 프로젝트: anam/abs
    public static Company GetCompanyByID(int id)
    {
        Company            company            = new Company();
        SqlCompanyProvider sqlCompanyProvider = new SqlCompanyProvider();

        company = sqlCompanyProvider.GetCompanyByID(id);
        return(company);
    }
예제 #4
0
파일: CompanyManager.cs 프로젝트: anam/abs
    public static List <Company> GetAllCompanies()
    {
        List <Company>     companies          = new List <Company>();
        SqlCompanyProvider sqlCompanyProvider = new SqlCompanyProvider();

        companies = sqlCompanyProvider.GetAllCompanies();
        return(companies);
    }
예제 #5
0
파일: CompanyManager.cs 프로젝트: anam/abs
    public static bool DeleteCompany(int companyID)
    {
        SqlCompanyProvider sqlCompanyProvider = new SqlCompanyProvider();

        return(sqlCompanyProvider.DeleteCompany(companyID));
    }
예제 #6
0
파일: CompanyManager.cs 프로젝트: anam/abs
    public static bool UpdateCompany(Company company)
    {
        SqlCompanyProvider sqlCompanyProvider = new SqlCompanyProvider();

        return(sqlCompanyProvider.UpdateCompany(company));
    }
예제 #7
0
파일: CompanyManager.cs 프로젝트: anam/abs
    public static int InsertCompany(Company company)
    {
        SqlCompanyProvider sqlCompanyProvider = new SqlCompanyProvider();

        return(sqlCompanyProvider.InsertCompany(company));
    }
예제 #8
0
 public static bool UpdateCompany(Company company)
 {
     SqlCompanyProvider sqlCompanyProvider = new SqlCompanyProvider();
     return sqlCompanyProvider.UpdateCompany(company);
 }
예제 #9
0
 public static int InsertCompany(Company company)
 {
     SqlCompanyProvider sqlCompanyProvider = new SqlCompanyProvider();
     return sqlCompanyProvider.InsertCompany(company);
 }
예제 #10
0
 public static bool DeleteCompany(int companyID)
 {
     SqlCompanyProvider sqlCompanyProvider = new SqlCompanyProvider();
     return sqlCompanyProvider.DeleteCompany(companyID);
 }