コード例 #1
0
 internal InsteadDeportationsBLL MapInsteadDeportation(InsteadDeportations InsteadDeportation)
 {
     try
     {
         InsteadDeportationsBLL InsteadDeportationBLL = null;
         if (InsteadDeportation != null)
         {
             InsteadDeportationBLL = new InsteadDeportationsBLL()
             {
                 InsteadDeportationID  = InsteadDeportation.InsteadDeportationID,
                 EmployeeCareerHistory = new EmployeesCareersHistoryBLL().MapEmployeeCareerHistory(InsteadDeportation.EmployeesCareersHistory),
                 DeportationDate       = InsteadDeportation.DeportationDate.Date,
                 Note          = InsteadDeportation.Note,
                 Amount        = InsteadDeportation.Amount,
                 CreatedDate   = InsteadDeportation.CreatedDate,
                 CreatedBy     = new EmployeesCodesBLL().MapEmployeeCode(InsteadDeportation.CreatedByNav),
                 LastUpdatedBy = new EmployeesCodesBLL().MapEmployeeCode(InsteadDeportation.LastUpdatedByNav)
             };
         }
         return(InsteadDeportationBLL);
     }
     catch
     {
         throw;
     }
 }
コード例 #2
0
        public InsteadDeportationsBLL GetByInsteadDeportationID(int id)
        {
            InsteadDeportationsBLL InsteadDeportationsBLL = null;
            InsteadDeportations    InsteadDeportation     = new InsteadDeportationsDAL().GetInsteadDeportationByInsteadDeportationID(id);

            if (InsteadDeportation != null)
            {
                InsteadDeportationsBLL = MapInsteadDeportation(InsteadDeportation);
            }
            return(InsteadDeportationsBLL);
        }