예제 #1
0
        public OdsApiResult EditPsiSchool(Models.PsiSchool model)
        {
            var request = _mapper.Map <School>(model);

            return(_restClient.PutResource(request, ResourcePaths.Schools, request.Id));
        }
예제 #2
0
        public OdsApiResult AddPsiSchool(Models.PsiSchool newSchool)
        {
            var request = _mapper.Map <School>(newSchool);

            return(_restClient.PostResource(request, ResourcePaths.Schools));
        }