Ejemplo n.º 1
0
        public static coreModel.DynamicContentFolder ToCoreModel(this webModel.DynamicContentFolder folder)
        {
            var retVal = new coreModel.DynamicContentFolder();

            retVal.InjectFrom(folder);
            return(retVal);
        }
		/// <summary>
		/// Converting to model type
		/// </summary>
		/// <param name="catalogBase"></param>
		/// <returns></returns>
		public static coreModel.DynamicContentFolder ToCoreModel(this dataModel.DynamicContentFolder dbEntity)
		{
			if (dbEntity == null)
				throw new ArgumentNullException("dbEntity");

			var retVal = new coreModel.DynamicContentFolder();
			retVal.InjectFrom(dbEntity);
			if (dbEntity.ParentFolder != null)
			{
				retVal.ParentFolder = dbEntity.ParentFolder.ToCoreModel();
			}
			return retVal;
		}
Ejemplo n.º 3
0
        /// <summary>
        /// Converting to model type
        /// </summary>
        /// <param name="catalogBase"></param>
        /// <returns></returns>
        public static coreModel.DynamicContentFolder ToCoreModel(this dataModel.DynamicContentFolder dbEntity)
        {
            if (dbEntity == null)
            {
                throw new ArgumentNullException("dbEntity");
            }

            var retVal = new coreModel.DynamicContentFolder();

            retVal.InjectFrom(dbEntity);
            if (dbEntity.ParentFolder != null)
            {
                retVal.ParentFolder = dbEntity.ParentFolder.ToCoreModel();
            }
            return(retVal);
        }
		public static coreModel.DynamicContentFolder ToCoreModel(this webModel.DynamicContentFolder folder)
		{
			var retVal = new coreModel.DynamicContentFolder();
			retVal.InjectFrom(folder);
			return retVal;
		}