Beispiel #1
0
 public void Add(BankInfoDTO DTO)
 {
     using (var container = new InventoryContainer())
     {
         PayBankInfo gur = new PayBankInfo();
         container.PayBankInfoes.AddObject((PayBankInfo)DTOMapper.DTOObjectConverter(DTO, gur));
         container.SaveChanges();
     }
 }
Beispiel #2
0
        public void Edit(BankInfoDTO EduDTO)
        {
            using (var container = new InventoryContainer())
            {
                var Comp = new PayBankInfo();
                Comp = container.PayBankInfoes.FirstOrDefault(o => o.BankId.Equals(EduDTO.BankId));

                Comp.BankId     = EduDTO.BankId;
                Comp.BankName   = EduDTO.BankName;
                Comp.UpdateBy   = EduDTO.UpdateBy;
                Comp.UpdateDate = EduDTO.UpdateDate;
                Comp            = (PayBankInfo)DTOMapper.DTOObjectConverter(EduDTO, Comp);

                container.SaveChanges();
            }
        }
 public void Edit(BankInfoDTO EduDTO)
 {
     BDAL.Edit(EduDTO);
 }
 public void Add(BankInfoDTO DTO)
 {
     BDAL.Add(DTO);
 }