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; }
/// <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; }