Example #1
0
        public List <StopWorksTypesBLL> GetByStopWorkCategoryID(int StopWorkCategoryID)
        {
            try
            {
                List <StopWorksTypes>    StopWorksTypesList    = new StopWorksTypesDAL().GetByStopWorkCategoryID(StopWorkCategoryID);
                List <StopWorksTypesBLL> StopWorksTypesBLLList = new List <StopWorksTypesBLL>();
                if (StopWorksTypesList.Count > 0)
                {
                    foreach (var item in StopWorksTypesList)
                    {
                        StopWorksTypesBLLList.Add(new StopWorksTypesBLL()
                        {
                            StopWorkTypeID   = item.StopWorkTypeID,
                            StopWorkTypeName = item.StopWorkTypeName,
                            StopWorkCategory = new StopWorksCategoriesBLL().MapInternshipScholarshipType(item.StopWorksCategories)
                        });
                    }
                }

                return(StopWorksTypesBLLList);
            }
            catch
            {
                throw;
            }
        }
Example #2
0
        public List <StopWorksTypesBLL> GetStopWorksTypes()
        {
            try
            {
                List <StopWorksTypes>    StopWorksTypesList    = new StopWorksTypesDAL().GetStopWorksTypes();
                List <StopWorksTypesBLL> StopWorksTypesBLLList = new List <StopWorksTypesBLL>();
                if (StopWorksTypesList.Count > 0)
                {
                    foreach (var item in StopWorksTypesList)
                    {
                        StopWorksTypesBLLList.Add(new StopWorksTypesBLL()
                        {
                            StopWorkTypeID   = item.StopWorkTypeID,
                            StopWorkTypeName = item.StopWorkTypeName
                        });
                    }
                }

                return(StopWorksTypesBLLList);
            }
            catch
            {
                throw;
            }
        }
Example #3
0
 public StopWorksTypesBLL GetByStopWorkTypeID(int StopWorkTypeID)
 {
     try
     {
         StopWorksTypes StopWorkType = new StopWorksTypesDAL().GetByStopWorkTypeID(StopWorkTypeID);
         return(new StopWorksTypesBLL()
         {
             StopWorkTypeID = StopWorkType.StopWorkTypeID,
             StopWorkTypeName = StopWorkType.StopWorkTypeName,
             StopWorkCategory = new StopWorksCategoriesBLL().MapInternshipScholarshipType(StopWorkType.StopWorksCategories)
         });
     }
     catch
     {
         throw;
     }
 }