public BE.UI.Bono Obtener(int idBono) { try { var beBono = new DA.Bono().Obtener(idBono); var uiBono = this.BeToUi(beBono); return(uiBono); } catch (Exception ex) { throw ex; } }
public bool Insertar(ref BE.UI.Bono uiBono) { try { var beBono = this.UiToBe(uiBono); bool rpta = new DA.Bono().Insertar(ref beBono); uiBono = this.BeToUi(beBono); return(rpta); } catch (Exception ex) { throw ex; } }
public List <BE.UI.Bono> Listar() { try { var lstUiBonos = new List <BE.UI.Bono>(); var lstBeBonos = new DA.Bono().Listar(); foreach (BE.Bono beBono in lstBeBonos) { BE.UI.Bono uiBono = this.BeToUi(beBono); lstUiBonos.Add(uiBono); } return(lstUiBonos); } catch (Exception ex) { throw ex; } }