Example #1
0
        public virtual JobsGeneralGroupsBLL GetByJobGeneralGroupID(int JobGeneralGroupID)
        {
            JobsGeneralGroups    JobGeneralGroup      = new JobsGeneralGroupsDAL().GetByJobGeneralGroupID(JobGeneralGroupID);
            JobsGeneralGroupsBLL JobsGeneralGroupsBLL = new JobsGeneralGroupsBLL();

            if (JobGeneralGroup != null)
            {
                if (JobGeneralGroup.JobGeneralGroupID > 0)
                {
                    return(new JobsGeneralGroupsBLL().MapJobGeneralGroup(JobGeneralGroup));
                }
            }
            return(null);
        }
Example #2
0
 public JobsGeneralGroupsBLL MapJobGeneralGroup(JobsGeneralGroups JobGeneralGroup)
 {
     try
     {
         JobsGeneralGroupsBLL JobGeneralGroupBLL = null;
         if (JobGeneralGroup != null)
         {
             JobGeneralGroupBLL = new JobsGeneralGroupsBLL()
             {
                 JobGeneralGroupID   = JobGeneralGroup.JobGeneralGroupID,
                 JobGeneralGroupName = JobGeneralGroup.JobGeneralGroupName,
             };
         }
         return(JobGeneralGroupBLL);
     }
     catch
     {
         throw;
     }
 }