private BankBranchDTO Map(tblBankBranch tbl)
 {
     var dto = new BankBranchDTO
                   {
                       MasterId = tbl.Id,
                       DateCreated = tbl.IM_DateCreated,
                       DateLastUpdated = tbl.IM_DateLastUpdated,
                       StatusId = tbl.IM_Status,
                       Name = tbl.Name,
                       Code = tbl.Code,
                       Description = tbl.Description,
                       BankMasterId = tbl.BankId
                   };
     return dto;
 }
 public BankBranch Map(BankBranchDTO dto)
 {
     if (dto == null) return null;
     var bankBranch = Mapper.Map<BankBranchDTO, BankBranch>(dto);
     bankBranch.Bank = _bankRepository.GetById(dto.BankMasterId);
     return bankBranch;
 }