public int SPInsertAdViewsStatistics(AdDetailsModel Model) { AdDetailsModel ModelObj = new AdDetailsModel(); ManagementObjectMapper objMapper = new ManagementObjectMapper(); ServiceLayer.ManagementService ManObj = new ManagementService(); return(ManObj.SPInsertAdViewsStatistics(objMapper.MapAddPostModelToAddPostEntity(Model))); }
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); }
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)); }
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)); }