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