Пример #1
0
		public static coreModel.Image ToCoreModel(this webModel.Image image)
        {
            var retVal = new coreModel.Image();
			retVal.InjectFrom(image);
			retVal.Url = image.RelativeUrl;
            return retVal;
        }
Пример #2
0
        public static coreModel.Image ToCoreModel(this webModel.Image image)
        {
            var retVal = new coreModel.Image();

            retVal.InjectFrom(image);
            retVal.Url = image.RelativeUrl;
            return(retVal);
        }
Пример #3
0
		/// <summary>
		/// Converting to model type
		/// </summary>
		/// <param name="catalogBase"></param>
		/// <returns></returns>
		public static coreModel.Image ToCoreModel(this dataModel.Image dbImage)
		{
			if (dbImage == null)
				throw new ArgumentNullException("dbImage");

			var retVal = new coreModel.Image();

			retVal.InjectFrom(dbImage);
			return retVal;

		}
Пример #4
0
        /// <summary>
        /// Converting to model type
        /// </summary>
        /// <param name="catalogBase"></param>
        /// <returns></returns>
        public static coreModel.Image ToCoreModel(this dataModel.Image dbImage)
        {
            if (dbImage == null)
            {
                throw new ArgumentNullException("dbImage");
            }

            var retVal = new coreModel.Image();

            retVal.InjectFrom(dbImage);
            return(retVal);
        }