Пример #1
0
 internal void SaveOrUpdateBankruptcyOtherDefDetailEntity(BankruptcyOtherDefDetailEntity bankruptcyOtherDefDetailEntity)
 {
     IRepository<BankruptcyOtherDefDetail> bankruptcyOtherDefDetailRepository = new RepositoryImpl<BankruptcyOtherDefDetail>(applicationSession);
     bankruptcyOtherDefDetailRepository.SaveOrUpdate(AllInOne.Legal.DataMapper.BackEnd.DomainToNHibernate.ObjectMapper.BankruptcyMapper.GetBankruptcyOtherDefDetail(bankruptcyOtherDefDetailEntity));
 }
Пример #2
0
        /// <summary>
        /// Gets the <see cref="BankruptcyOtherDefDetail"/> from <see cref="BankruptcyOtherDefDetailEntity"/> input.
        /// </summary>
        /// <param name="bankruptcyOtherDefDetailEntity"><see cref="BankruptcyOtherDefDetailEntity"/></param>
        /// <returns>Returns <see cref="BankruptcyOtherDefDetail"/>, else null.</returns>
        public static BankruptcyOtherDefDetail GetBankruptcyOtherDefDetail(BankruptcyOtherDefDetailEntity bankruptcyOtherDefDetailEntity)
        {
            BankruptcyOtherDefDetail bankruptcyOtherDefDetail = null;

            try
            {
                bankruptcyOtherDefDetail = Mapper.Map<BankruptcyOtherDefDetailEntity, BankruptcyOtherDefDetail>(bankruptcyOtherDefDetailEntity);
            }
            catch (Exception ex)
            {
                Logger.Error("Error at GetBankruptcyOtherDefDetail", ex);
                throw;
            }

            return bankruptcyOtherDefDetail;
        }