コード例 #1
0
        public OdsApiResult AddSchool(Models.School newSchool)
        {
            var request = _mapper.Map <School>(newSchool);

            return(_restClient.PostResource(request, ResourcePaths.Schools));
        }
コード例 #2
0
        public OdsApiResult EditSchool(Models.School model)
        {
            var request = _mapper.Map <School>(model);

            return(_restClient.PutResource(request, ResourcePaths.Schools, request.Id));
        }