public static FechasBOEBL MapFechaUItoBL(FechasBOEUI fechaBL) { FechasBOEBL dt = new FechasBOEBL(); dt.idCalendar = fechaBL.idCalendar; dt.fecha = fechaBL.fecha; return(dt); }
public static FechasBOEUI MapFechaBLtoUI(FechasBOEBL fechaBL) { FechasBOEUI dt = new FechasBOEUI(); dt.idCalendar = fechaBL.idCalendar; dt.fecha = fechaBL.fecha; return(dt); }
private void btnMarcarDescargaBOE_Click(object sender, EventArgs e) { DateTime dt = calendarDescarga.SelectionRange.Start; FechasBOEUI fecha = new FechasBOEUI(); fecha.fecha = dt; if (serv.saveFecha(Mapper.MapperFechasBOEUI.MapFechaUItoBL(fecha), out error)) { CargarFechasBOE(); } MessageBox.Show(error.mensaje); }