public ActionResult <RestrictionResource> Update(RestrictionResource resource) { _restrictionService.Update(resource.ToModel()); return(Accepted(resource.Id)); }
private void UpdateRestriction(RestrictionResource resource) { _restrictionService.Update(resource.ToModel()); }
private void Update(RestrictionResource resource) { _restrictionService.Update(resource.InjectTo <Restriction>()); }