/// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="refId">ID for the standards document</param>
 ///<param name="language">A Language</param>
 ///<param name="title">Name of standard document, i.e., "Washington Essential Academic Learning Requirements."</param>
 ///<param name="organizations">Name of organization represented by the document, i.e., "National Council of Teachers of Mathematics (NCTM)," "Washington," "Seattle School District."</param>
 ///<param name="subjectAreas">For a description of this element, see 5.1.30 SubjectArea.</param>
 ///<param name="documentStatus">ValuesDraft,AdoptedArchivedUnknown</param>
 ///<param name="learningStandardItemRefId">Link to the first/top LearningStandardItem in the Standard hierarchy</param>
 ///
 public LearningStandardDocument( string refId, LanguageCode language, string title, Organization organizations, SubjectAreas subjectAreas, DocumentStatus documentStatus, string learningStandardItemRefId )
     : base(Adk.SifVersion, InstrDTD.LEARNINGSTANDARDDOCUMENT)
 {
     this.RefId = refId;
     this.SetLanguage( language );
     this.Title = title;
     this.Organizations =  new Organizations( organizations );
     this.SubjectAreas = subjectAreas;
     this.SetDocumentStatus( documentStatus );
     this.LearningStandardItemRefId = learningStandardItemRefId;
 }
Beispiel #2
0
        public HttpResponseMessage getSubjectAreas()
        {
            List <SubjectAreas> list = new List <SubjectAreas>();
            SubjectAreas        u    = new SubjectAreas();

            list = u.getSubjectAreas();
            string yourJson = JsonConvert.SerializeObject(list);;
            var    response = this.Request.CreateResponse(HttpStatusCode.OK);

            response.Content = new StringContent(yourJson, Encoding.UTF8, "application/json");
            return(response);
        }
Beispiel #3
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="refId">ID for the standards document</param>
 ///<param name="language">A Language</param>
 ///<param name="title">Name of standard document, i.e., "Washington Essential Academic Learning Requirements."</param>
 ///<param name="organizations">Name of organization represented by the document, i.e., "National Council of Teachers of Mathematics (NCTM)," "Washington," "Seattle School District."</param>
 ///<param name="subjectAreas">For a description of this element, see 5.1.30 SubjectArea.</param>
 ///<param name="documentStatus">ValuesDraft,AdoptedArchivedUnknown</param>
 ///<param name="learningStandardItemRefId">Link to the first/top LearningStandardItem in the Standard hierarchy</param>
 ///
 public LearningStandardDocument(string refId, LanguageCode language, string title, Organization organizations, SubjectAreas subjectAreas, DocumentStatus documentStatus, string learningStandardItemRefId) : base(Adk.SifVersion, InstrDTD.LEARNINGSTANDARDDOCUMENT)
 {
     this.RefId = refId;
     this.SetLanguage(language);
     this.Title         = title;
     this.Organizations = new Organizations(organizations);
     this.SubjectAreas  = subjectAreas;
     this.SetDocumentStatus(documentStatus);
     this.LearningStandardItemRefId = learningStandardItemRefId;
 }