public IHttpActionResult Update(PersonGroupModel model) { using (var scope = _contextScopeFactory.CreateReadOnly()) { var personGroup = _personGroupService.Update(model); return(Ok(personGroup)); } }