Exemplo n.º 1
0
        //convert list from dal to dto
        public static List <PanelDTO> ListToDTO(List <PanelAd> lp)
        {
            List <PanelDTO> l = new List <PanelDTO>();

            foreach (PanelAd p in lp)
            {
                PanelDTO x = convertDalToDTO(p);
                l.Add(x);
            }
            return(l);
        }
Exemplo n.º 2
0
 //from dto to dal
 public static PanelAd ToDal(PanelDTO p)
 {
     return(new PanelAd()
     {
         BoardId = p.BoardId,
         AdId = p.AdId,
         PanelDate = p.PanelDate,
         PanelLineStart = p.PanelLineStart,
         PanelLineEnd = p.PanelLineEnd,
         PanelColumnStart = p.PanelColumnStart,
         PanelColumnEnd = p.PanelColumnEnd
     });
 }