private void UpdateMapping(RemotePathMappingResource resource) { var mapping = _remotePathMappingService.Get(resource.Id); mapping.InjectFrom(resource); _remotePathMappingService.Update(mapping); }
private void UpdateMapping(RemotePathMappingResource resource) { var mapping = resource.ToModel(); _remotePathMappingService.Update(mapping); }
public ActionResult <RemotePathMappingResource> UpdateMapping(RemotePathMappingResource resource) { var mapping = resource.ToModel(); return(Accepted(_remotePathMappingService.Update(mapping))); }