public int SaveDepartment(Entity.Sales.Department Model) { DepartmentDbModel DbModel = new DepartmentDbModel(); Model.CopyPropertiesTo(DbModel); return(DepartmentDataAccess.SaveDepartment(DbModel)); }
public List <Entity.Sales.Department> GetAllDepartment() { List <Entity.Sales.Department> callDepartmentList = new List <Entity.Sales.Department>(); DepartmentDataAccess.GetAllDepartment().CopyListTo(callDepartmentList); return(callDepartmentList); }
private async Task SetUpProperties() { PartModels = (await PartDataAccess.GetAllParts()).ToList(); UoMModels = (await UoMDataAccess.GetAllUoMs()).ToList(); DepartmentModels = (await DepartmentDataAccess.GetAllDepartments()).ToList(); AlloyModels = (await MaterialAlloyDataAccess.GetAllMaterialAlloys()).ToList(); SeriesModels = (await MaterialSeriesDataAccess.GetAllMaterialSeries()).ToList(); }
private async Task SetUpProperties() { ShipViaCodes = (await ShipViaCodeDataAccess.GetAllShipVias()).ToList(); Customers = (await CustomerDataAccess.GetAllCurrentAndProspectCustomers()).ToList(); UoMs = (await UoMDataAccess.GetAllUoMs()).ToList(); PackageCodes = (await PackageCodeDataAccess.GetAllPackageCodes()).ToList(); Containers = (await ContainerTypeDataAccess.GetAllContainerTypes()).ToList(); CertificationCharges = (await CertificationChargeDataAccess.GetAllCertCharges()).ToList(); Alloys = (await AlloyDataAccess.GetAllMaterialAlloys()).ToList(); Series = (await SeriesDataAccess.GetAllMaterialSeries()).ToList(); Departments = (await DepartmentDataAccess.GetAllDepartments()).ToList(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); ICourseDataAccess courseDataAccess = new CourseDataAccess(); ICourseBusiness courseBusiness = new CourseBusiness(courseDataAccess); IDepartmentDataAccess departmentDataAccess = new DepartmentDataAccess(); IDepartmentBusiness departmentBusiness = new DepartmentBusiness(departmentDataAccess); ICourseViewModel courseViewModel = new CourseViewModel(courseBusiness, departmentBusiness); Application.Run(new CourseRead(courseViewModel)); }
public int DeleteDepartment(int Id) { return(DepartmentDataAccess.DeleteDepartment(Id)); }
public Entity.Sales.Department GetDepartmentById(int Id) { Entity.Sales.Department Department = new Entity.Sales.Department(); DepartmentDataAccess.GetDepartmentById(Id).CopyPropertiesTo(Department); return(Department); }
public static List <Department> GetDepartments() { DepartmentDataAccess department = new DepartmentDataAccess(); return(department.GetDepartments()); }