Exemplo n.º 1
0
        public IEnumerable <TypeField> GetTypeFields()
        {
            var typeFields = _storeSettingService.GetTypeFields();

            if (typeFields == null)
            {
                throw new HttpResponseException(Request.CreateResponse(HttpStatusCode.NotFound));
            }

            return(typeFields.Select(x => x as TypeField));
        }
Exemplo n.º 2
0
        /// <summary>
        /// The get type fields.
        /// </summary>
        /// <returns>
        /// The collection of all <see cref="TypeField"/>.
        /// </returns>
        public IEnumerable <TypeField> GetTypeFields()
        {
            var typeFields = _storeSettingService.GetTypeFields();

            return(typeFields.Select(x => x as TypeField));
        }