示例#1
0
        public int SPInsertAdViewsStatistics(AdDetailsModel Model)
        {
            AdDetailsModel         ModelObj  = new AdDetailsModel();
            ManagementObjectMapper objMapper = new ManagementObjectMapper();

            ServiceLayer.ManagementService ManObj = new ManagementService();
            return(ManObj.SPInsertAdViewsStatistics(objMapper.MapAddPostModelToAddPostEntity(Model)));
        }
示例#2
0
        public void UpdateAdDetails(AdDetailsModel Obj)
        {
            ManagementObjectMapper objMapper = new ManagementObjectMapper();
            AdDetailsEntity        Entity    = new AdDetailsEntity();

            Entity = objMapper.MapAddPostModelToAddPostEntity(Obj);
            ServiceLayer.ManagementService ManObj = new ManagementService();
            ManObj.UpdateAdDetails(Entity);
        }
示例#3
0
        public int UploadImage(AdDetailsModel obj)
        {
            ManagementObjectMapper objMapper = new ManagementObjectMapper();
            AdDetailsEntity        Entity    = new AdDetailsEntity();

            Entity = objMapper.MapAddPostModelToAddPostEntity(obj);

            ServiceLayer.ManagementService ManObj = new ManagementService();
            return(ManObj.UploadImage(Entity));
        }
示例#4
0
        public int InsertAdPostByAdmin(AdDetailsModel ModelObj)
        {
            ManagementObjectMapper objMapper = new ManagementObjectMapper();
            AdDetailsEntity        Entity    = new AdDetailsEntity();

            Entity = objMapper.MapAddPostModelToAddPostEntity(ModelObj);

            ServiceLayer.ManagementService ManObj = new ManagementService();
            return(ManObj.InsertAdPostByAdmin(Entity));
        }