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