Esempio n. 1
0
        public AdvertisementsExt Map(Advertisements model)
        {
            AdvertisementsExt tblModel = new AdvertisementsExt()
            {
                AdvertisementID = model.AdvertisementID,
                Advertisement   = model.Advertisement,
                SortBy          = model.SortBy
            };

            return(tblModel);
        }
Esempio n. 2
0
 public void MapUpdate(ref Advertisements dbmodel, AdvertisementsExt model)
 {
     dbmodel.AdvertisementID = model.AdvertisementID;
     dbmodel.Advertisement   = model.Advertisement;
     dbmodel.SortBy          = model.SortBy;
 }