Ejemplo n.º 1
0
        public static IcbcodeCollection <IcbcodeField> Get(long content_id)
        {
            IcbcodeCollection <IcbcodeField> items = new IcbcodeCollection <IcbcodeField>();

            using (FieldRepository field_repository = new FieldRepository())
            {
                List <dynamic> fields = field_repository.GetFilterFields(content_id);

                items.TotalPages  = items.Count;
                items.CurrentPage = 1;
                items.PageSize    = 1;

                for (int index = 0; index < fields.Count; index++)
                {
                    items.Add(IcbcodeField.Convert(fields[index], index + 1, fields.Count));
                }
            }

            return(items);
        }
Ejemplo n.º 2
0
 public IcbcodeCollection <IcbcodeField> GetFields()
 {
     return(IcbcodeField.Get(ID));
 }