public SchoolUsersViewModel(EducationSchool School, ArrayResult <EducationUser> users, ArrayResult <EducationUser> students, ArrayResult <EducationUser> teachers) { this.School = School; this.Users = users; this.Students = students; this.Teachers = teachers; }
public SectionsViewModel(string userEmail, EducationSchool school, ArrayResult <EducationClass> classes, IEnumerable <EducationClass> myClasses) { this.UserEmail = userEmail; this.School = school; this.Classes = classes; this.MyClasses = myClasses.ToList(); }
public SectionsViewModel(UserContext userContext, EducationSchool school, ArrayResult <EducationClass> classes, IEnumerable <EducationClass> myClasses) { this.UserEmail = userContext.UserO365Email; this.School = school; this.Classes = classes; this.MyClasses = myClasses.ToList(); this.UserContext = userContext; }
public SchoolUsersViewModel(UserContext userContext, EducationSchool School, ArrayResult <EducationUser> users, ArrayResult <EducationUser> students, ArrayResult <EducationUser> teachers, ArrayResult <EducationUser> studentsInMyClasses) { this.School = School; this.Users = users; this.Students = students; this.Teachers = teachers; this.StudentsInMyClasses = studentsInMyClasses; this.UserContext = userContext; }
/// <summary> /// Update the navigation property schools in education /// <param name="body"></param> /// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param> /// </summary> public RequestInformation CreatePatchRequestInformation(EducationSchool body, Action <EducationSchoolItemRequestBuilderPatchRequestConfiguration> requestConfiguration = default) { _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation { HttpMethod = Method.PATCH, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { var requestConfig = new EducationSchoolItemRequestBuilderPatchRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); } return(requestInfo); }