Пример #1
0
        public OdsApiResult EditLocalEducationAgency(Models.LocalEducationAgency model)
        {
            var request = _mapper.Map <LocalEducationAgency>(model);

            return(_restClient.PutResource(request, ResourcePaths.LocalEducationAgencies, request.Id));
        }
Пример #2
0
        public OdsApiResult AddLocalEducationAgency(Models.LocalEducationAgency newLocalEducationAgency)
        {
            var request = _mapper.Map <LocalEducationAgency>(newLocalEducationAgency);

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