public void AddEmployee(BOEmployee boEmployee)
 {
     try
     {
         Employee employee = BusinessLayerHelper.ConvertBOEmployeeToEmployee(boEmployee);
         dataLayer.AddEmployee(employee);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public void AddProject(BOProject boProject)
 {
     try
     {
         Project project = BusinessLayerHelper.ConvertBOProjectToProject(boProject);
         dataLayer.AddProject(project);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public void AddTechnology(BOTechnology boTechnology)
 {
     try
     {
         TechnologyMaster technology = BusinessLayerHelper.ConvertBOTechnologyToTechnology(boTechnology);
         dataLayer.AddTechnology(technology);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public List <BOProject> GetAllProjectsForEmployees(int employeeID)
 {
     try
     {
         List <Project>   projects = dataLayer.GetAllProjectsForEmployees(employeeID);
         List <BOProject> businessProjectsForEmployee = BusinessLayerHelper.ConvertProjectListToBOProjectList(projects);
         return(businessProjectsForEmployee);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public List <BOEmployee> GetAllEmployeesForProjects(int projectID)
 {
     try
     {
         List <Employee>   employees         = dataLayer.GetAllEmployeesForProjects(projectID);
         List <BOEmployee> businessEmployees = BusinessLayerHelper.ConvertEmployeeListToBOEmployeeList(employees);
         return(businessEmployees);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public List <BOTechnology> GetAllTechnologies()
 {
     try
     {
         List <TechnologyMaster> technologies         = dataLayer.GetAllTechnologies();
         List <BOTechnology>     businessTechnologies = BusinessLayerHelper.ConvertTechnologyListToBOTechnologyList(technologies);
         return(businessTechnologies);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public List <BOProject> GetAllProjects()
 {
     try
     {
         List <Project>   projects         = dataLayer.GetAllProjects();
         List <BOProject> businessProjects = BusinessLayerHelper.ConvertProjectListToBOProjectList(projects);
         return(businessProjects);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public List <BOTechnology> GetAllTechnologiesForEmployee(int employeeID)
 {
     try
     {
         List <TechnologyMaster> technologies            = dataLayer.GetAllTechnologiesForEmployee(employeeID);
         List <BOTechnology>     businessTaskForProjects = BusinessLayerHelper.ConvertTechnologyListToBOTechnologyList(technologies);
         return(businessTaskForProjects);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public List <BOProject> GetAllTechnologyProjects(int technologyID)
 {
     try
     {
         List <Project>   projects = dataLayer.GetAllTechnologyProjects(technologyID);
         List <BOProject> businessTechnologyProjects = BusinessLayerHelper.ConvertProjectListToBOProjectList(projects);
         return(businessTechnologyProjects);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public List <BOTask> GetAllTechnologyTasksForEmployee(int technologyID, int employeeID)
 {
     try
     {
         List <CompanyManagementDataLayer.Task> tasks     = dataLayer.GetAllTechnologyTasksForEmployee(technologyID, employeeID);
         List <BOTask> businessTechnologyTasksForEmployee = BusinessLayerHelper.ConvertTaskListToBOTaskList(tasks);
         return(businessTechnologyTasksForEmployee);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public List <BOProject> GetAllDelayedProjects()
 {
     try
     {
         int              delayedStatus           = Convert.ToInt32(CMEnum.Status.Delayed);
         List <Project>   projects                = dataLayer.GetAllDelayedProjects(delayedStatus);
         List <BOProject> businessProjectsDelayed = BusinessLayerHelper.ConvertProjectListToBOProjectList(projects);
         return(businessProjectsDelayed);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public List <BOTask> GetAllDelayedTasksForEmployee(int employeeID)
 {
     try
     {
         int delayedStatus = Convert.ToInt32(CMEnum.Status.Delayed);
         List <CompanyManagementDataLayer.Task> tasks = dataLayer.GetAllDelayedTasksForEmployee(employeeID, delayedStatus);
         List <BOTask> businessDelayedTaskForemployee = BusinessLayerHelper.ConvertTaskListToBOTaskList(tasks);
         return(businessDelayedTaskForemployee);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public List <BOTask> GetAllActiveTasksForProject(int projectID)
 {
     try
     {
         int status = Convert.ToInt32(CMEnum.Status.Active);
         List <CompanyManagementDataLayer.Task> tasks = dataLayer.GetAllTasksForProject(projectID, status);
         List <BOTask> businessTaskForProjects        = BusinessLayerHelper.ConvertTaskListToBOTaskList(tasks);
         return(businessTaskForProjects);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public List <BOProject> GetAllActiveProjectsManagedByEmployee(int employeeID)
 {
     try
     {
         int              activeStatus  = Convert.ToInt32(CMEnum.Status.Active);
         int              designationID = Convert.ToInt32(CMEnum.Designation.Manager);
         List <Project>   projects      = dataLayer.GetAllProjectsOfEmployee(employeeID, activeStatus, designationID);
         List <BOProject> businessActiveProjectsForEmployee = BusinessLayerHelper.ConvertProjectListToBOProjectList(projects);
         return(businessActiveProjectsForEmployee);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public void CreateTaskInProject(BOTask boTask, int projectID)
 {
     try
     {
         int status        = Convert.ToInt32(CMEnum.Status.Completed);
         int projectStatus = dataLayer.GetProjectStatus(projectID);
         if (projectStatus == status)
         {
             throw new Exception(CMBusinessResources.TaskNotCreatedCompletedProject);
         }
         CompanyManagementDataLayer.Task task = BusinessLayerHelper.ConvertBOTaskToTask(boTask);
         dataLayer.CreateTaskInProject(task, projectID);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }