Exemplo n.º 1
0
 public PromotionsJobsCategoriesBLL GetPromotionsJobsCategoriesByPromotionJobCategoryID(int PromotionJobCategoryID)
 {
     try
     {
         PromotionsJobsCategories           PromotionJobCategory           = new PromotionsJobsCategoriesDAL().GetPromotionJobCategoryByPromotionJobCategoryID(PromotionJobCategoryID);
         List <PromotionsJobsCategoriesBLL> PromotionsJobsCategoriesBLList = new List <PromotionsJobsCategoriesBLL>();
         if (PromotionJobCategory != null)
         {
             return(new PromotionsJobsCategoriesBLL().MapPromotionJobCategory(PromotionJobCategory));
         }
         return(null);
     }
     catch
     {
         throw;
     }
 }
Exemplo n.º 2
0
        public List <PromotionsJobsCategoriesBLL> GetMainJobCategoriesByAssignedJobCategoryID(int JobCategoryID)
        {
            try
            {
                List <PromotionsJobsCategories>    MainJobCategoryList    = new PromotionsJobsCategoriesDAL().GetMainJobCategoriesByAssignedJobCategoryID(JobCategoryID);
                List <PromotionsJobsCategoriesBLL> MainJobCategoryBLLList = new List <PromotionsJobsCategoriesBLL>();

                foreach (var item in MainJobCategoryList)
                {
                    MainJobCategoryBLLList.Add(new PromotionsJobsCategoriesBLL().MapPromotionJobCategory(item));
                }
                return(MainJobCategoryBLLList);
            }
            catch
            {
                throw;
            }
        }
Exemplo n.º 3
0
 public List <JobsCategoriesBLL> GetJobsCategoriesToIncludeInPromotionRecord(int PromotionPeriodID, int JobCategoryID)
 {
     try
     {
         List <PromotionsJobsCategories> PromotionsPeriodsList = new PromotionsJobsCategoriesDAL().GetByJobCategoryIDPromotionPeriodID(PromotionPeriodID, JobCategoryID);
         List <JobsCategoriesBLL>        JobsCategoriesBLLList = new List <JobsCategoriesBLL>();
         JobsCategoriesBLLList.Add(new JobsCategoriesBLL().GetByJobCategoryID(JobCategoryID));
         foreach (var item in PromotionsPeriodsList)
         {
             JobsCategoriesBLLList.Add(new JobsCategoriesBLL().MapJobCategory(item.AssignedJobsCategories));
         }
         return(JobsCategoriesBLLList);
     }
     catch
     {
         throw;
     }
 }
Exemplo n.º 4
0
        public List <PromotionsJobsCategoriesBLL> GetPromotionsJobsCategoriesByJobCategoryID(int JobCategoryID)
        {
            try
            {
                List <PromotionsJobsCategories>    AssignedJobCategoryList        = new PromotionsJobsCategoriesDAL().GetAssignedJobCategoriesByJobCategoryID(JobCategoryID);
                List <PromotionsJobsCategoriesBLL> PromotionsJobsCategoriesBLList = new List <PromotionsJobsCategoriesBLL>();
                if (AssignedJobCategoryList.Count > 0)
                {
                    foreach (var item in AssignedJobCategoryList)
                    {
                        PromotionsJobsCategoriesBLList.Add(new PromotionsJobsCategoriesBLL().MapPromotionJobCategory(item));
                    }
                }

                return(PromotionsJobsCategoriesBLList);
            }
            catch
            {
                throw;
            }
        }