public static EntityFileModel Map(EntityFile objModel) { return(new EntityFileModel { Id = objModel.Id, SectionId = objModel.SectionId, EntityId = objModel.EntityId, FileId = objModel.FileId, Section = SectionMap.Map(objModel.Section) }); }
public static FavouriteModel Map(Favourite objModel) { return(new FavouriteModel { Id = objModel.Id, EntityId = objModel.EntityId, SectionId = objModel.SectionId, UserProfileId = objModel.UserProfileId, Section = SectionMap.Map(objModel.Section) }); }
public static List <SectionModel> Map(List <Section> lstModel) { var ret = new List <SectionModel>(); int i = 0, lstModel_count = lstModel.Count; for (i = 0; i < lstModel_count; i++) { ret.Add(SectionMap.Map(lstModel[i])); } return(ret); }